frosch
67bec51f27
(svn r19970) -Fix (r14742): SmallMap::Insert() did not compile. Construct new items like operator[].
2010-06-13 09:41:48 +00:00
frosch
1d3adb2b66
(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
9db3cde73a
(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
51e67a40e0
(svn r19909) -Doc: Typo fixes, small doxygen improvements.
2010-05-30 13:05:36 +00:00
rubidium
2c25f51281
(svn r19789) -Add [FS#3519]: a typed FOR_EACH_SET_BIT (adf88)
2010-05-11 20:59:54 +00:00
rubidium
be504a6ef0
(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
af7051178d
(svn r19671) -Fix (r19670): RoundDiv() needs to deal with signed numerators.
2010-04-18 17:13:01 +00:00
frosch
2e90f7f8b9
(svn r19670) -Codechange: Add CeilDiv() and RoundDiv() to simplify integer divisions with rounding.
2010-04-18 14:56:05 +00:00
frosch
184fa43df2
(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
2141ca2368
(svn r19643) -Fix (r19120): Industry generation failed for large maps and lots of industry types.
2010-04-16 21:21:54 +00:00
smatz
0ef33548c2
(svn r19614) -Codechange: "it's" => "its" where appropriate
2010-04-12 14:12:47 +00:00
frosch
0d4e6c46ff
(svn r19605) -Codechange: Merge ExtractBits into EnumPropsT.
2010-04-11 15:44:16 +00:00
rubidium
d0122644af
(svn r19133) -Fix [FS#3621]: [Mac OS X] --enable-desync-debug failed compiling (planetmaker)
2010-02-14 16:52:15 +00:00
frosch
b0496c339f
(svn r19125) -Fix (r18809): Compiling with desync-debug failed.
2010-02-13 20:13:34 +00:00
smatz
d62d0ac489
(svn r19019) -Codechange: use HasExactlyOneBit() and HasAtMostOneBit() instead of CountBits() where possible
2010-02-05 17:05:58 +00:00
rubidium
d818c7c7b1
(svn r18996) -Fix (r18993, r18994): MSVC 64 bits had somethings to complain about
2010-02-03 21:45:48 +00:00
rubidium
c75f19f40b
(svn r18993) -Codechange: allow allocating multiple items in a SmallVector with one call.
2010-02-03 17:25:56 +00:00
rubidium
82fc28f77f
(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
ce08aebde7
(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
a7be7ebe80
(svn r18633) -Codechange: fortify SmallVector a bit more
2009-12-25 23:10:20 +00:00
rubidium
7c2a61e210
(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
a70f2244e8
(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
b0eacbf350
(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
485b5a9c2f
(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
83e7ca3dc8
(svn r18042) -Cleanup: remove some stale comments
2009-11-11 20:53:23 +00:00
rubidium
8f9157b648
(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
1528b64a68
(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
0ebe525e5b
(svn r17838) -Document: the Pool struct's template parameters
2009-10-21 15:40:50 +00:00
rubidium
d5d2354296
(svn r17790) -Feature: translatable base sound/graphics set descriptions
2009-10-17 20:34:09 +00:00
rubidium
d6cded5380
(svn r17693) -Cleanup: remove some unneeded includes
2009-10-04 17:16:41 +00:00
rubidium
ca91a97826
(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
e8ddf001c8
(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
frosch
2d9c54c9a8
(svn r17541) -Feature: Filtering in Add-NewGRF dialog.
2009-09-14 20:59:46 +00:00
rubidium
17313b6e3f
(svn r17530) -Codechange: use QSortT instead of qsort for sorting EngineIDs
2009-09-13 17:47:07 +00:00
rubidium
67448246d3
(svn r17527) -Codechange: use QSortT instead of qsort for sorting smallmaps
2009-09-13 17:38:49 +00:00
smatz
100ae8efcc
(svn r17292) -Codechange: use unified ToPercent() function to convert fract numbers to percents
2009-08-27 13:31:26 +00:00
rubidium
7fbc33dae1
(svn r17248) -Fix: add GPL license notice where appropriate
2009-08-21 20:21:05 +00:00
smatz
c861d9b64b
(svn r16745) -Fix [FS#3011]: invalidate JoinStation window after removing item from the pool
2009-07-05 13:20:05 +00:00
rubidium
571dfb9055
(svn r16736) -Codechange: give some station enums a name and use that instead of 'byte'.
2009-07-04 11:26:57 +00:00
smatz
93c5300fc5
(svn r16715) -Codechange: add attribute to assert_compile(), so it doesn't warn when used inside function
2009-07-01 21:29:03 +00:00
alberth
8fba82c99b
(svn r16684) -Codechange: Add maxdim function for Dimension struct.
2009-06-28 15:16:57 +00:00
alberth
9b070b5405
(svn r16677) -Codechange: Dimension width and height are unsigned.
2009-06-27 20:53:45 +00:00
frosch
0d782b0f96
(svn r16498) -Codechange: Remove hardly used HASBITS.
2009-06-01 15:01:54 +00:00
smatz
56a7b70591
(svn r16380) -Codechange: rename pool.hpp to pool_type.hpp
2009-05-22 15:39:22 +00:00
smatz
62a7948af0
(svn r16378) -Codechange: replace OldPool with simpler Pool. Compilation time, binary size and run time (with asserts disabled) should be improved
2009-05-22 15:13:50 +00:00
smatz
3bd52accd9
(svn r16356) -Codechange: use 'size_t' instead of 'uint' as parameter of functions in mem_func.hpp
2009-05-19 08:21:37 +00:00
smatz
6221d74644
(svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index)
2009-05-16 23:34:14 +00:00
rubidium
a5d6e23e9d
(svn r16305) -Codechange: force-enable extra sync checking when random debugging is enable and give the calling location of Chance16(R) instead of the Random call within those functions.
2009-05-14 12:08:24 +00:00
rubidium
3d3b5256f0
(svn r16295) -Fix: ICC defined __GNUC__ but does not define __builtin_bswap32, so fall back to the default swap method for ICC.
2009-05-13 16:51:17 +00:00
smatz
f5316c5cbd
(svn r16269) -Codechange: use gcc's ability to check parameters sent to printf-like functions
...
-Fix: wrong number of parameters or wrong parameter types sent to printf-like functions at several places
2009-05-10 17:27:25 +00:00