rubidium
9fc2798baf
(svn r22411) -Document: another bunch of bits
2011-05-02 17:42:12 +00:00
rubidium
8a08de2f44
(svn r22177) -Fix: make sure the right endianness is chosen with cross-compiling, and strndup is available in the binary for more exotic platforms
2011-03-03 21:43:24 +00:00
planetmaker
4f3066cd73
(svn r22136) -Fix (r22112): Silence compiler warning about non-virtual destructor
2011-02-24 06:57:55 +00:00
smatz
c85e1c3089
(svn r22116) -Codechange: use PoolBase::Clean() at more places
2011-02-19 23:05:47 +00:00
smatz
9c40059641
(svn r22115) -Fix (r22114): some comments and code ordering were wrong
2011-02-19 18:55:10 +00:00
smatz
0e12107ccd
(svn r22112) -Codechange: register all pools in a pool vector
2011-02-19 18:23:45 +00:00
smatz
817392c9b0
(svn r22041) -Codechange: add a check that we called PoolItem::CanAllocateItem() before actually allocating it
2011-02-09 18:55:51 +00:00
rubidium
05199a641a
(svn r21890) -Cleanup: remove some unneeded includes
2011-01-22 14:52:20 +00:00
rubidium
43c8073551
(svn r21886) -Codechange: move documentation towards the code to make it more likely to be updated [n].
2011-01-22 09:53:15 +00:00
alberth
624ab9cfbb
(svn r21645) -Doc: Document SmallPair and SmallMap template parameters.
2010-12-26 17:47:00 +00:00
rubidium
0765e4c9ab
(svn r21336) -Fix (r21030) [FS#4274]: compile failure when desync debugging is enabled (fonsinchen)
2010-11-27 12:55:43 +00:00
frosch
cb2b666229
(svn r20951) -Codechange: Add SmallMap::Contains() and use it.
2010-10-16 20:34:43 +00:00
alberth
5a18e4820a
(svn r20838) -Fix [FS#4136]: Cast '1' in bitmath functions to width of result before shifting.
2010-09-22 20:59:24 +00:00
yexo
ddd16c592b
(svn r20731) -Fix (r20739): SmallVector did not have an assignment operator, causing invalid memory reads / double free
2010-09-03 23:04:02 +00:00
yexo
0d040f03e6
(svn r20729) -Fix [FS#4107]: assert when overbuilding object
2010-09-03 21:50:51 +00:00
frosch
c18839704b
(svn r20286) -Codechange: Unify end of doxygen comments.
2010-08-01 19:44:49 +00:00
frosch
5b86c79fce
(svn r20283) -Codechange: Unify start of doygen comments.
2010-08-01 19:22:34 +00:00
alberth
1743c86610
(svn r20266) -Doc: Mostly typo fixes, a few doxygen-related improvements.
2010-07-31 21:02:56 +00:00
frosch
1fd5333070
(svn r19970) -Fix (r14742): SmallMap::Insert() did not compile. Construct new items like operator[].
2010-06-13 09:41:48 +00:00
frosch
a5bea603ea
(svn r19931) -Fix (r19914): Convert assertion in Backup<> destructor into DEBUG() output. It was triggered on exceptions, especially when aborting world generation.
2010-06-05 12:16:12 +00:00
frosch
ee53807e51
(svn r19914) -Codechange: Wrap a helper class around temporary assignments of _current_company to ensure proper restoration.
2010-05-31 20:22:57 +00:00
alberth
29fd6ce0e4
(svn r19909) -Doc: Typo fixes, small doxygen improvements.
2010-05-30 13:05:36 +00:00
rubidium
115a4ee734
(svn r19789) -Add [FS#3519]: a typed FOR_EACH_SET_BIT (adf88)
2010-05-11 20:59:54 +00:00
rubidium
ee02599bbf
(svn r19788) -Codechange: make FOR_EACH_SET_BIT not change the value of the passed bit variable, i.e. allow expressions as parameter
2010-05-11 20:48:06 +00:00
frosch
d391a1123e
(svn r19671) -Fix (r19670): RoundDiv() needs to deal with signed numerators.
2010-04-18 17:13:01 +00:00
frosch
a4413f4cf6
(svn r19670) -Codechange: Add CeilDiv() and RoundDiv() to simplify integer divisions with rounding.
2010-04-18 14:56:05 +00:00
frosch
83bcde6da4
(svn r19652) -Fix: RandomRange() is used for bigger ranges in many cases, so generally extent it to handle 32 bits.
2010-04-17 11:49:25 +00:00
frosch
80db03aef7
(svn r19643) -Fix (r19120): Industry generation failed for large maps and lots of industry types.
2010-04-16 21:21:54 +00:00
smatz
258b128a56
(svn r19614) -Codechange: "it's" => "its" where appropriate
2010-04-12 14:12:47 +00:00
frosch
6726bc727a
(svn r19605) -Codechange: Merge ExtractBits into EnumPropsT.
2010-04-11 15:44:16 +00:00
rubidium
88aae13b35
(svn r19133) -Fix [FS#3621]: [Mac OS X] --enable-desync-debug failed compiling (planetmaker)
2010-02-14 16:52:15 +00:00
frosch
9d5a8b851b
(svn r19125) -Fix (r18809): Compiling with desync-debug failed.
2010-02-13 20:13:34 +00:00
smatz
6c1ab1a2fa
(svn r19019) -Codechange: use HasExactlyOneBit() and HasAtMostOneBit() instead of CountBits() where possible
2010-02-05 17:05:58 +00:00
rubidium
416a47f9a2
(svn r18996) -Fix (r18993, r18994): MSVC 64 bits had somethings to complain about
2010-02-03 21:45:48 +00:00
rubidium
8ad31f1bfa
(svn r18993) -Codechange: allow allocating multiple items in a SmallVector with one call.
2010-02-03 17:25:56 +00:00
rubidium
9467b7c6d6
(svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, if a header require a header make it include that header
2010-01-15 16:41:15 +00:00
smatz
f6177d9708
(svn r18640) -Fix (r18633): don't assert when accessing first invalid item, it's used quite often in the code
...
-Revert (r18637): it's not needed any more
2009-12-26 13:49:14 +00:00
smatz
754502ac37
(svn r18633) -Codechange: fortify SmallVector a bit more
2009-12-25 23:10:20 +00:00
rubidium
54ffa0e563
(svn r18508) -Fix [FS#3372]: if a rail station class had less data than capacity it would try to set a negative position
2009-12-15 01:38:55 +00:00
rubidium
7ec7cf2435
(svn r18443) -Fix (r18438): MSVC thinks, in it's infinite wisdom, that int min(int, int) is a better match for min(uint64, uint) than uint64 min(uint64, uint64). As such we need to cast the UINT16_MAX to prevent MSVC from displaying it's infinite wisdom with loads of warnings.
2009-12-09 09:28:47 +00:00
rubidium
ba92913b19
(svn r18438) -Codechange [FS#3337]: introduce a template for Clamp (fonsinchen) and reuse template functions in their non-template counterparts.
2009-12-09 00:41:18 +00:00
rubidium
eeb6cf766b
(svn r18045) -Fix: GCC 4.5@HEAD not compiling OpenTTD anymore because of a "non-placement deallocation function [is] selected for placement delete", or in other words delete(void *, size_t) is 'magic'.
...
We implemented these delete(void *, size_t) operator functions because MSVC warned that "no matching operator delete found; memory will not be freed if initialization throws an exception" for new(size_t, size_t).
This disables MSVC warning about this because we do not use exceptions in the (constructors that use the) overridden allocation functions, as such they will never be called; delete(void *) remains necessary though.
2009-11-11 21:15:58 +00:00
rubidium
fd35f12584
(svn r18042) -Cleanup: remove some stale comments
2009-11-11 20:53:23 +00:00
rubidium
88edbfe3d6
(svn r18040) -Codechange: the size parameter (if it's that actually) isn't needed for the delete operator
2009-11-11 20:40:40 +00:00
rubidium
5ce38e4fdd
(svn r17839) -Codechange: implement the concept of 'caching' pool items to pools, that is instead of 'free' push the unused items in a linked list and use them on 'malloc'. Also add the concept of zeroing, or actually not zeroing, on new for pool items.
2009-10-21 19:38:50 +00:00
rubidium
9321dccf1e
(svn r17838) -Document: the Pool struct's template parameters
2009-10-21 15:40:50 +00:00
rubidium
0ee61a16ef
(svn r17790) -Feature: translatable base sound/graphics set descriptions
2009-10-17 20:34:09 +00:00
rubidium
982b8ee5fc
(svn r17693) -Cleanup: remove some unneeded includes
2009-10-04 17:16:41 +00:00
rubidium
2e5596025c
(svn r17579) -Fix: remove doxygen docs for removed parameters, or change @param to @tparam if necessary
2009-09-19 15:17:47 +00:00
rubidium
310465da07
(svn r17570) -Fix: a number of Doxygen warnings about missing parameters, which were sometimes missing and sometimes just typos
2009-09-19 09:51:14 +00:00