Commit Graph

116 Commits (bc48c70c46baa8948e008f59a417838368178d83)

Author SHA1 Message Date
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.
15 years ago
rubidium fd35f12584 (svn r18042) -Cleanup: remove some stale comments 15 years ago
rubidium 88edbfe3d6 (svn r18040) -Codechange: the size parameter (if it's that actually) isn't needed for the delete operator 15 years ago
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. 15 years ago
rubidium 9321dccf1e (svn r17838) -Document: the Pool struct's template parameters 15 years ago
rubidium 0ee61a16ef (svn r17790) -Feature: translatable base sound/graphics set descriptions 15 years ago
rubidium 982b8ee5fc (svn r17693) -Cleanup: remove some unneeded includes 15 years ago
rubidium 2e5596025c (svn r17579) -Fix: remove doxygen docs for removed parameters, or change @param to @tparam if necessary 15 years ago
rubidium 310465da07 (svn r17570) -Fix: a number of Doxygen warnings about missing parameters, which were sometimes missing and sometimes just typos 15 years ago
frosch bdc86b7280 (svn r17541) -Feature: Filtering in Add-NewGRF dialog. 15 years ago
rubidium 1854c5efec (svn r17530) -Codechange: use QSortT instead of qsort for sorting EngineIDs 15 years ago
rubidium f0f63077f2 (svn r17527) -Codechange: use QSortT instead of qsort for sorting smallmaps 15 years ago
smatz a0d0206f2d (svn r17292) -Codechange: use unified ToPercent() function to convert fract numbers to percents 15 years ago
rubidium 99d46e0ad7 (svn r17248) -Fix: add GPL license notice where appropriate 15 years ago
smatz aa4ccab6a8 (svn r16745) -Fix [FS#3011]: invalidate JoinStation window after removing item from the pool 15 years ago
rubidium c5a44ce99e (svn r16736) -Codechange: give some station enums a name and use that instead of 'byte'. 15 years ago
smatz fe57925910 (svn r16715) -Codechange: add attribute to assert_compile(), so it doesn't warn when used inside function 15 years ago
alberth ae9cd9b700 (svn r16684) -Codechange: Add maxdim function for Dimension struct. 15 years ago
alberth c52fe937d5 (svn r16677) -Codechange: Dimension width and height are unsigned. 15 years ago
frosch c9eac207ea (svn r16498) -Codechange: Remove hardly used HASBITS. 15 years ago
smatz 3793b966c3 (svn r16380) -Codechange: rename pool.hpp to pool_type.hpp 15 years ago
smatz 50624d5c0f (svn r16378) -Codechange: replace OldPool with simpler Pool. Compilation time, binary size and run time (with asserts disabled) should be improved 15 years ago
smatz 67696c8a15 (svn r16356) -Codechange: use 'size_t' instead of 'uint' as parameter of functions in mem_func.hpp 15 years ago
smatz d495dc5dbc (svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index) 15 years ago
rubidium 043c3c8b06 (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. 15 years ago
rubidium f4b557c02e (svn r16295) -Fix: ICC defined __GNUC__ but does not define __builtin_bswap32, so fall back to the default swap method for ICC. 15 years ago
smatz ce7dff4acc (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
15 years ago
smatz e54aca7905 (svn r16148) -Fix [FS#2839]: misleading comment (part by Bilbo) 15 years ago
rubidium 110f15c638 (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. 15 years ago
frosch 870e234d23 (svn r16006) -Fix (r0): Chance16() did not work for b = 1. Also transform the formula to not use divisions. 15 years ago
rubidium bc7a870a61 (svn r15931) -Codechange: let the host and ban lists use of SmallVector. 15 years ago
rubidium 4eea5c9669 (svn r15777) -Add: helper functions to get the least common multiple and the greatest common divisor (Alberth) 15 years ago
rubidium f3e0fd7416 (svn r15711) -Codechange: lots of whitespace cleanup/fixes 16 years ago
rubidium 75a32223c6 (svn r15649) -Fix (r15556): don't unnecessarily reallocate 16 years ago
rubidium 2972ad372b (svn r15603) -Fix [FS#2696]: crash when using an extraordinarily large sprite as cursor. 16 years ago
smatz 3707a11e5e (svn r15571) -Fix: incorrect use of memset 16 years ago
rubidium 9ab8a2aab1 (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 d6d2da171f (svn r15508) -Fix: three header files had incorrect 'anti-multiple-inclusion' header 16 years ago
peter1138 eeaa4c8d9a (svn r15447) -Codechange: void functions don't tend to return true if and only if anyway 16 years ago
belugas 06bdc9d575 (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 002c9b7c67 (svn r15445) -Fix: little typos 16 years ago
smatz 16d1904e70 (svn r15324) -Codechange: unify the class used for comparing of strings for std::map 16 years ago
smatz 9021c20b5e (svn r15299) -Cleanup: remove many redundant includes 16 years ago
Yexo e8f190849e (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 72b0341ed0 (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 f528593a40 (svn r15031) -Fix (r15027): merge reverted r15026, so do it once again 16 years ago
truebrain c2406cd42d (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 ec97e1fd0d (svn r15026) -Codechange: use SpriteTypeByte instead of SpriteType in the SpriteCache struct in order to make it smaller 16 years ago
rubidium 28ea38ae55 (svn r14949) -Cleanup: pointer coding style 16 years ago
rubidium 4df86694a7 (svn r14910) -Codechange: merge the command queue handling into a single location 16 years ago