frosch
858e80f3dd
(svn r26333) -Fix: Compilation without static_assert.
11 years ago
fonsinchen
e37656f2e5
(svn r26331) -Fix: some inconsistencies regarding link graph (job) IDs.
11 years ago
rubidium
b3e93d6520
(svn r26057) -Fix: a number of possibly uninitialised variables
11 years ago
fonsinchen
fe550c2db3
(svn r25893) -Fix: Document RandomRange and change misleading parameter name 'max' in random functions.
11 years ago
fonsinchen
1ed478d433
(svn r25889) -Codechange: Add forgotten file.
11 years ago
fonsinchen
e21ae34878
(svn r25887) -Fix: Ignore NULL pointers in delete operator of PoolItem.
11 years ago
rubidium
13855f0a09
(svn r25705) -Fix: a number of typos (inspired by 90c920601c84975acb694f3673e2beb08b013753)
11 years ago
michi_cc
de097dd989
(svn r25685) -Codechange: [OSX] Use non-deprecated functions for byte swapping.
11 years ago
frosch
18ae9c78bc
(svn r25402) -Fix-ish: Prevent copying of BasePool and WindowDesc, since they register in static vectors.
11 years ago
fonsinchen
4fd57501bb
(svn r25348) -Add: multimap implementation with guaranteed order between equal keys
11 years ago
fonsinchen
dfad8317aa
(svn r25347) -Add: function for deterministic approximate division
11 years ago
rubidium
b0a2818ed0
(svn r25256) -Add: small matrix type (like vector, but for matrices) (fonsinchen)
12 years ago
frosch
5cd5aca98c
(svn r25043) -Change [FS#3764]: Only display subtypes in the refit GUI which are available for all selected vehicles. Also add a generic list item to refit while keeping the subtypes of individual vehicles.
12 years ago
rubidium
6be79c424d
(svn r24959) -Doc [FS#5459]: that certain parameters need to be within certain boundaries
12 years ago
planetmaker
c24374f99c
(svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by Eagle_rainbow)
12 years ago
alberth
732e073261
(svn r24776) -Doc: Typo fixes, additions, and additional dots collected from various sources (including Eagle_rainbow, MinchinWeb)
12 years ago
frosch
dcfb2af871
(svn r24741) -Add: Const-methods to SmallMap.
12 years ago
frosch
f9819c6645
(svn r24448) -Fix [FS#5255]: Copy constructor and assignment operator cannot be implicit template specialisations. (adf88)
12 years ago
frosch
e1617a3d10
(svn r24275) -Codechange: Make SmallVector::FindIndex() const.
13 years ago
smatz
b5525fd33d
(svn r23941) -Add: support for clang
13 years ago
michi_cc
9d72b47984
(svn r23880) -Add: A simple smart pointer.
13 years ago
rubidium
a48e3cb891
(svn r23854) -Codechange: make it easier to put random debug stuff into the random log
13 years ago
rubidium
2a0754b678
(svn r23814) -Codechange: write the random-debug output directly to a file
13 years ago
alberth
4af8c2d5e1
(svn r23704) -Doc: Doxygen comment fixes and additions.
13 years ago
truebrain
1c9bec1999
(svn r23640) -Fix: stop using FORCEINLINE (1/3rd of the instances were, the others were still regular inline), but make sure inline is always a 'forced' inline (I am looking at you MSVC)
13 years ago
truebrain
2ae87e7213
(svn r23634) -Add: support language files for GameScript (Rubidium)
13 years ago
rubidium
6153dc57f5
(svn r23466) -Fix [FS#4871, FS#4874]: assertion triggered when resizing a window during ReInit by an amount that's not a multiple of the resize interval
13 years ago
michi_cc
d3b7b89493
(svn r23415) -Feature: Infrastructure maintenance costs.
13 years ago
glx
2c20738067
(svn r22898) -Codechange: use MSVC compiler intrinsics for byte swapping
13 years ago
frosch
5ccd091fd1
(svn r22881) -Fix (r22875): GCC warnings on 64bit systems.
13 years ago
michi_cc
f227e90c24
(svn r22875) -Codechange: Add some asserts and checks to better prevent overflow of the argument to malloc. (monoid)
13 years ago
rubidium
fb5ecb9499
(svn r22411) -Document: another bunch of bits
14 years ago
rubidium
59e42ea178
(svn r22177) -Fix: make sure the right endianness is chosen with cross-compiling, and strndup is available in the binary for more exotic platforms
14 years ago
planetmaker
ac0700c564
(svn r22136) -Fix (r22112): Silence compiler warning about non-virtual destructor
14 years ago
smatz
756cc6cf65
(svn r22116) -Codechange: use PoolBase::Clean() at more places
14 years ago
smatz
642fb19d4f
(svn r22115) -Fix (r22114): some comments and code ordering were wrong
14 years ago
smatz
5fd13843f7
(svn r22112) -Codechange: register all pools in a pool vector
14 years ago
smatz
fbfb0ffbf2
(svn r22041) -Codechange: add a check that we called PoolItem::CanAllocateItem() before actually allocating it
14 years ago
rubidium
7eba2bf4d3
(svn r21890) -Cleanup: remove some unneeded includes
14 years ago
rubidium
eb299736c1
(svn r21886) -Codechange: move documentation towards the code to make it more likely to be updated [n].
14 years ago
alberth
8282b66b70
(svn r21645) -Doc: Document SmallPair and SmallMap template parameters.
14 years ago
rubidium
ff015ac62c
(svn r21336) -Fix (r21030) [FS#4274]: compile failure when desync debugging is enabled (fonsinchen)
14 years ago
frosch
98250ad8da
(svn r20951) -Codechange: Add SmallMap::Contains() and use it.
14 years ago
alberth
b3270caaf1
(svn r20838) -Fix [FS#4136]: Cast '1' in bitmath functions to width of result before shifting.
14 years ago
yexo
0decc3e094
(svn r20731) -Fix (r20739): SmallVector did not have an assignment operator, causing invalid memory reads / double free
14 years ago
yexo
a45b598bfc
(svn r20729) -Fix [FS#4107]: assert when overbuilding object
14 years ago
frosch
4bd32799f1
(svn r20286) -Codechange: Unify end of doxygen comments.
14 years ago
frosch
ed4f806f1d
(svn r20283) -Codechange: Unify start of doygen comments.
14 years ago
alberth
a825b4fa5f
(svn r20266) -Doc: Mostly typo fixes, a few doxygen-related improvements.
14 years ago
frosch
67bec51f27
(svn r19970) -Fix (r14742): SmallMap::Insert() did not compile. Construct new items like operator[].
15 years ago
frosch
1d3adb2b66
(svn r19931) -Fix (r19914): Convert assertion in Backup<> destructor into DEBUG() output. It was triggered on exceptions, especially when aborting world generation.
15 years ago
frosch
9db3cde73a
(svn r19914) -Codechange: Wrap a helper class around temporary assignments of _current_company to ensure proper restoration.
15 years ago
alberth
51e67a40e0
(svn r19909) -Doc: Typo fixes, small doxygen improvements.
15 years ago
rubidium
2c25f51281
(svn r19789) -Add [FS#3519]: a typed FOR_EACH_SET_BIT (adf88)
15 years ago
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
15 years ago
frosch
af7051178d
(svn r19671) -Fix (r19670): RoundDiv() needs to deal with signed numerators.
15 years ago
frosch
2e90f7f8b9
(svn r19670) -Codechange: Add CeilDiv() and RoundDiv() to simplify integer divisions with rounding.
15 years ago
frosch
184fa43df2
(svn r19652) -Fix: RandomRange() is used for bigger ranges in many cases, so generally extent it to handle 32 bits.
15 years ago
frosch
2141ca2368
(svn r19643) -Fix (r19120): Industry generation failed for large maps and lots of industry types.
15 years ago
smatz
0ef33548c2
(svn r19614) -Codechange: "it's" => "its" where appropriate
15 years ago
frosch
0d4e6c46ff
(svn r19605) -Codechange: Merge ExtractBits into EnumPropsT.
15 years ago
rubidium
d0122644af
(svn r19133) -Fix [FS#3621]: [Mac OS X] --enable-desync-debug failed compiling (planetmaker)
15 years ago
frosch
b0496c339f
(svn r19125) -Fix (r18809): Compiling with desync-debug failed.
15 years ago
smatz
d62d0ac489
(svn r19019) -Codechange: use HasExactlyOneBit() and HasAtMostOneBit() instead of CountBits() where possible
15 years ago
rubidium
d818c7c7b1
(svn r18996) -Fix (r18993, r18994): MSVC 64 bits had somethings to complain about
15 years ago
rubidium
c75f19f40b
(svn r18993) -Codechange: allow allocating multiple items in a SmallVector with one call.
15 years ago
rubidium
82fc28f77f
(svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, if a header require a header make it include that header
15 years ago
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
15 years ago
smatz
a7be7ebe80
(svn r18633) -Codechange: fortify SmallVector a bit more
15 years ago
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
15 years ago
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.
15 years ago
rubidium
b0eacbf350
(svn r18438) -Codechange [FS#3337]: introduce a template for Clamp (fonsinchen) and reuse template functions in their non-template counterparts.
15 years ago
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.
15 years ago
rubidium
83e7ca3dc8
(svn r18042) -Cleanup: remove some stale comments
15 years ago
rubidium
8f9157b648
(svn r18040) -Codechange: the size parameter (if it's that actually) isn't needed for the delete operator
15 years ago
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.
15 years ago
rubidium
0ebe525e5b
(svn r17838) -Document: the Pool struct's template parameters
15 years ago
rubidium
d5d2354296
(svn r17790) -Feature: translatable base sound/graphics set descriptions
15 years ago
rubidium
d6cded5380
(svn r17693) -Cleanup: remove some unneeded includes
15 years ago
rubidium
ca91a97826
(svn r17579) -Fix: remove doxygen docs for removed parameters, or change @param to @tparam if necessary
15 years ago
rubidium
e8ddf001c8
(svn r17570) -Fix: a number of Doxygen warnings about missing parameters, which were sometimes missing and sometimes just typos
15 years ago
frosch
2d9c54c9a8
(svn r17541) -Feature: Filtering in Add-NewGRF dialog.
15 years ago
rubidium
17313b6e3f
(svn r17530) -Codechange: use QSortT instead of qsort for sorting EngineIDs
15 years ago
rubidium
67448246d3
(svn r17527) -Codechange: use QSortT instead of qsort for sorting smallmaps
15 years ago
smatz
100ae8efcc
(svn r17292) -Codechange: use unified ToPercent() function to convert fract numbers to percents
15 years ago
rubidium
7fbc33dae1
(svn r17248) -Fix: add GPL license notice where appropriate
15 years ago
smatz
c861d9b64b
(svn r16745) -Fix [FS#3011]: invalidate JoinStation window after removing item from the pool
15 years ago
rubidium
571dfb9055
(svn r16736) -Codechange: give some station enums a name and use that instead of 'byte'.
15 years ago
smatz
93c5300fc5
(svn r16715) -Codechange: add attribute to assert_compile(), so it doesn't warn when used inside function
15 years ago
alberth
8fba82c99b
(svn r16684) -Codechange: Add maxdim function for Dimension struct.
15 years ago
alberth
9b070b5405
(svn r16677) -Codechange: Dimension width and height are unsigned.
15 years ago
frosch
0d782b0f96
(svn r16498) -Codechange: Remove hardly used HASBITS.
16 years ago
smatz
56a7b70591
(svn r16380) -Codechange: rename pool.hpp to pool_type.hpp
16 years ago
smatz
62a7948af0
(svn r16378) -Codechange: replace OldPool with simpler Pool. Compilation time, binary size and run time (with asserts disabled) should be improved
16 years ago
smatz
3bd52accd9
(svn r16356) -Codechange: use 'size_t' instead of 'uint' as parameter of functions in mem_func.hpp
16 years ago
smatz
6221d74644
(svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index)
16 years ago
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.
16 years ago
rubidium
3d3b5256f0
(svn r16295) -Fix: ICC defined __GNUC__ but does not define __builtin_bswap32, so fall back to the default swap method for ICC.
16 years ago
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
16 years ago
smatz
25ecace01b
(svn r16148) -Fix [FS#2839]: misleading comment (part by Bilbo)
16 years ago
rubidium
a1e822df6b
(svn r16130) -Fix [FS#2855]: the overflowsafe type didn't like dividing by int64 larger than MAX_INT32 causing division by negative numbers and small anomolies when drawing graphs.
16 years ago
frosch
d3de4ba91b
(svn r16006) -Fix (r0): Chance16() did not work for b = 1. Also transform the formula to not use divisions.
16 years ago
rubidium
89d0eca6b7
(svn r15931) -Codechange: let the host and ban lists use of SmallVector.
16 years ago
rubidium
3ef8a09e20
(svn r15777) -Add: helper functions to get the least common multiple and the greatest common divisor (Alberth)
16 years ago
rubidium
9d018723b7
(svn r15711) -Codechange: lots of whitespace cleanup/fixes
16 years ago
rubidium
60de42be49
(svn r15649) -Fix (r15556): don't unnecessarily reallocate
16 years ago
rubidium
b55ed2e668
(svn r15603) -Fix [FS#2696]: crash when using an extraordinarily large sprite as cursor.
16 years ago
smatz
846044ee26
(svn r15571) -Fix: incorrect use of memset
16 years ago
rubidium
3ba802e995
(svn r15556) -Change: don't temporary malloc+free when encoding sprites, just reuse the same piece of allocated memory for each encoding.
16 years ago
smatz
b8471e5401
(svn r15508) -Fix: three header files had incorrect 'anti-multiple-inclusion' header
16 years ago
peter1138
e73a4e490c
(svn r15447) -Codechange: void functions don't tend to return true if and only if anyway
16 years ago
belugas
62be0ce7e6
(svn r15446) -Revert(r15445): Seems that "iff" stands for "if and only if". So not much of a typo.
...
Thanks, Yexo. I feel less ignorant today :D
16 years ago
belugas
c26426a44e
(svn r15445) -Fix: little typos
16 years ago
smatz
5ad1cd32b2
(svn r15324) -Codechange: unify the class used for comparing of strings for std::map
16 years ago
smatz
0d3f5e6e74
(svn r15299) -Cleanup: remove many redundant includes
16 years ago
Yexo
0e42a7bac7
(svn r15291) -Cleanup: Move the station list widgets to their class from station_gui.h
...
-Fix: comment for ReallocT was wrong, the memory is not zeroed.
16 years ago
rubidium
3a13b75e37
(svn r15126) -Feature: downloading content from a central server (content.openttd.org) where authors can upload they NewGRFS/AI etc. This should make joining servers that use only NewGRFs that are distributed via this system easier as the players can download the NewGRFs from in the game. It should also make it easier to see whether there are updates for NewGRFs and make the necessary updates.
16 years ago
smatz
16dfe58e4d
(svn r15031) -Fix (r15027): merge reverted r15026, so do it once again
16 years ago
truebrain
a3dd7506d3
(svn r15027) -Merge: tomatos and bananas left to be, here is NoAI for all to see.
...
NoAI is an API (a framework) to build your own AIs in. See:
http://wiki.openttd.org/wiki/index.php/AI:Main_Page
With many thanks to:
- glx and Rubidium for their syncing, feedback and hard work
- Yexo for his feedback, patches, and AIs which tested the system very deep
- Morloth for his feedback and patches
- TJIP for hosting a challenge which kept NoAI on track
- All AI authors for testing our AI API, and all other people who helped in one way or another
-Remove: all old AIs and their cheats/hacks
16 years ago
smatz
9294f96168
(svn r15026) -Codechange: use SpriteTypeByte instead of SpriteType in the SpriteCache struct in order to make it smaller
16 years ago
rubidium
11da45ee55
(svn r14949) -Cleanup: pointer coding style
16 years ago
rubidium
d4b6cc997d
(svn r14910) -Codechange: merge the command queue handling into a single location
16 years ago
peter1138
5f4aef3c11
(svn r14776) -Fix (r14742): ListPositionMap relied on std::map having sorted the map, which is now done by a manual key sorter on SmallMap. This fixes engine ID list sorting.
16 years ago
rubidium
703831ec6d
(svn r14761) -Fix (r14730): missed the one DEREF_CLIENT in the random debug code :(
16 years ago
smatz
2e2086f3f8
(svn r14742) -Codechange: use SmallMap in two cases to reduce compilation time and binary size
16 years ago
frosch
5ea2dc97fd
(svn r14704) -Codechange: Add set capabilities to SmallVector.
16 years ago
smatz
3cd2957544
(svn r14669) -Codechange: use SmallVector instead of std::list at one place
16 years ago
smatz
7a031b60cd
(svn r14486) -Fix (r13343)(r14484): compilation with desync debug was broken
16 years ago
rubidium
b650a86e58
(svn r14422) -Codechange: also reflect the changes of r14421 in the filenames.
16 years ago
rubidium
3b798599b6
(svn r14421) -Codechange: rename all player variables/types to company *or* client so it is immediatelly clear which one you are working with.
16 years ago
smatz
c620d5e5f0
(svn r14232) -Codechange: use builtin for byte swapping for gcc >= 4.3
16 years ago
frosch
f7826f8a37
(svn r14083) -Fix [FS#1264, FS#2037, FS#2038, FS#2110]: Rewrite the autoreplace kernel.
16 years ago
rubidium
c5a4e90338
(svn r13910) -Document: string drawing related functions and types (Alberth)
16 years ago
peter1138
6e0af9fdfe
(svn r13781) -Feature: NewGRF presets, selected by a drop down list in the NewGRF window. Presets are saved in the config file.
16 years ago
rubidium
3a799389eb
(svn r13731) -Codechange: make a pool of the array of players.
16 years ago
smatz
114c820c56
(svn r13639) -Codechange: rewrite 32bpp-anim and 32bpp-optimized drawing and encoding so it uses similiar scheme as 8bpp-optimized
...
All zoom levels are stored and a kind of RLE is used. Together with further changes and reducing number of variables, drawing is ~50% faster in average.
16 years ago
skidd13
b4ef380c49
(svn r13607) -Fix (r13606): some coding style issues got fixed but some got/stayed broken
17 years ago
skidd13
640e547886
(svn r13606) -Codechange: use "static FORCEINLINE" where possible as default for core functions (big functions use just inline instead)
17 years ago
skidd13
2f65d35ead
(svn r13575) -Codechange: Move small vector to core since it fits better in there
...
-Codechange: convert smallvector from struct to class
17 years ago
smatz
9da745b381
(svn r13552) -Codechange: use TTD_ENDIAN comparations instead of tests if TTD_[BIG/LITTLE]_ENDIAN is defined
17 years ago
skidd13
03854bf27c
(svn r13517) -Add: remaining used typesafe versions of the mem* functions from <string.h>
17 years ago
skidd13
96fc91baf3
(svn r13516) -Codechange: Move MemCpyT to a fitting core header
...
-Codechange: Split the sorting code from the sortlist to an appropriate header
17 years ago
smatz
bd5067b5a0
(svn r13456) -Codechange: use AllocaM() macro instead of alloca() at most places
17 years ago
glx
6e6014918e
(svn r13273) -Fix [FS#2042]: MSVC warnings (again)
17 years ago
rubidium
d03994098b
(svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description.
17 years ago
rubidium
72eb1f100b
(svn r12936) -Doc: a few structs in geometry_type.hpp. Patch by Alberth.
17 years ago
rubidium
91fa34ea11
(svn r12873) -Fix [FS#1946]: MSVC is whining because it doesn't understand that bytes should be cast to ints.
17 years ago
smatz
14dc60c8a1
(svn r12778) -Codechange: add the NORETURN attribute to *allocError() functions
17 years ago
rubidium
9d8fa486af
(svn r12761) -Codechange: lots of minor whitespace coding style fixes around operators.
17 years ago
rubidium
c31287206d
(svn r12749) -Codechange: store the viewport information in the windows that have a viewport instead of one global array with a viewport for each window, even when they do not use the viewport.
17 years ago