Commit Graph

227 Commits (424e4691ce2122ccfe42d19aad4edb6b71b5c689)

Author SHA1 Message Date
rubidium 4b30ce61c1 (svn r25256) -Add: small matrix type (like vector, but for matrices) (fonsinchen) 11 years ago
frosch f81b2246fc (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 13c769ff00 (svn r24959) -Doc [FS#5459]: that certain parameters need to be within certain boundaries 12 years ago
planetmaker f00d9976f9 (svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by Eagle_rainbow) 12 years ago
alberth 19adc87262 (svn r24776) -Doc: Typo fixes, additions, and additional dots collected from various sources (including Eagle_rainbow, MinchinWeb) 12 years ago
frosch 2d34e34a8b (svn r24741) -Add: Const-methods to SmallMap. 12 years ago
frosch 0138c3fc2b (svn r24448) -Fix [FS#5255]: Copy constructor and assignment operator cannot be implicit template specialisations. (adf88) 12 years ago
frosch 008dd8d774 (svn r24275) -Codechange: Make SmallVector::FindIndex() const. 12 years ago
smatz bb9b240a86 (svn r23941) -Add: support for clang 13 years ago
michi_cc 88b14d9760 (svn r23880) -Add: A simple smart pointer. 13 years ago
rubidium 59edf288de (svn r23854) -Codechange: make it easier to put random debug stuff into the random log 13 years ago
rubidium dcdc998aaa (svn r23814) -Codechange: write the random-debug output directly to a file 13 years ago
alberth 06597e684c (svn r23704) -Doc: Doxygen comment fixes and additions. 13 years ago
truebrain aa1a0053b0 (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 f1f0776efd (svn r23634) -Add: support language files for GameScript (Rubidium) 13 years ago
rubidium 330ea6f277 (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 fc8633e1ac (svn r23415) -Feature: Infrastructure maintenance costs. 13 years ago
glx d4fc5bf88d (svn r22898) -Codechange: use MSVC compiler intrinsics for byte swapping 13 years ago
frosch 398ed7ebb8 (svn r22881) -Fix (r22875): GCC warnings on 64bit systems. 13 years ago
michi_cc dcef62040f (svn r22875) -Codechange: Add some asserts and checks to better prevent overflow of the argument to malloc. (monoid) 13 years ago
rubidium 9fc2798baf (svn r22411) -Document: another bunch of bits 13 years ago
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 14 years ago
planetmaker 4f3066cd73 (svn r22136) -Fix (r22112): Silence compiler warning about non-virtual destructor 14 years ago
smatz c85e1c3089 (svn r22116) -Codechange: use PoolBase::Clean() at more places 14 years ago
smatz 9c40059641 (svn r22115) -Fix (r22114): some comments and code ordering were wrong 14 years ago
smatz 0e12107ccd (svn r22112) -Codechange: register all pools in a pool vector 14 years ago
smatz 817392c9b0 (svn r22041) -Codechange: add a check that we called PoolItem::CanAllocateItem() before actually allocating it 14 years ago
rubidium 05199a641a (svn r21890) -Cleanup: remove some unneeded includes 14 years ago
rubidium 43c8073551 (svn r21886) -Codechange: move documentation towards the code to make it more likely to be updated [n]. 14 years ago
alberth 624ab9cfbb (svn r21645) -Doc: Document SmallPair and SmallMap template parameters. 14 years ago
rubidium 0765e4c9ab (svn r21336) -Fix (r21030) [FS#4274]: compile failure when desync debugging is enabled (fonsinchen) 14 years ago
frosch cb2b666229 (svn r20951) -Codechange: Add SmallMap::Contains() and use it. 14 years ago
alberth 5a18e4820a (svn r20838) -Fix [FS#4136]: Cast '1' in bitmath functions to width of result before shifting. 14 years ago
yexo ddd16c592b (svn r20731) -Fix (r20739): SmallVector did not have an assignment operator, causing invalid memory reads / double free 14 years ago
yexo 0d040f03e6 (svn r20729) -Fix [FS#4107]: assert when overbuilding object 14 years ago
frosch c18839704b (svn r20286) -Codechange: Unify end of doxygen comments. 14 years ago
frosch 5b86c79fce (svn r20283) -Codechange: Unify start of doygen comments. 14 years ago
alberth 1743c86610 (svn r20266) -Doc: Mostly typo fixes, a few doxygen-related improvements. 14 years ago
frosch 1fd5333070 (svn r19970) -Fix (r14742): SmallMap::Insert() did not compile. Construct new items like operator[]. 14 years ago
frosch a5bea603ea (svn r19931) -Fix (r19914): Convert assertion in Backup<> destructor into DEBUG() output. It was triggered on exceptions, especially when aborting world generation. 14 years ago
frosch ee53807e51 (svn r19914) -Codechange: Wrap a helper class around temporary assignments of _current_company to ensure proper restoration. 14 years ago
alberth 29fd6ce0e4 (svn r19909) -Doc: Typo fixes, small doxygen improvements. 14 years ago
rubidium 115a4ee734 (svn r19789) -Add [FS#3519]: a typed FOR_EACH_SET_BIT (adf88) 14 years ago
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 14 years ago
frosch d391a1123e (svn r19671) -Fix (r19670): RoundDiv() needs to deal with signed numerators. 14 years ago
frosch a4413f4cf6 (svn r19670) -Codechange: Add CeilDiv() and RoundDiv() to simplify integer divisions with rounding. 14 years ago
frosch 83bcde6da4 (svn r19652) -Fix: RandomRange() is used for bigger ranges in many cases, so generally extent it to handle 32 bits. 14 years ago
frosch 80db03aef7 (svn r19643) -Fix (r19120): Industry generation failed for large maps and lots of industry types. 14 years ago
smatz 258b128a56 (svn r19614) -Codechange: "it's" => "its" where appropriate 14 years ago
frosch 6726bc727a (svn r19605) -Codechange: Merge ExtractBits into EnumPropsT. 14 years ago
rubidium 88aae13b35 (svn r19133) -Fix [FS#3621]: [Mac OS X] --enable-desync-debug failed compiling (planetmaker) 15 years ago
frosch 9d5a8b851b (svn r19125) -Fix (r18809): Compiling with desync-debug failed. 15 years ago
smatz 6c1ab1a2fa (svn r19019) -Codechange: use HasExactlyOneBit() and HasAtMostOneBit() instead of CountBits() where possible 15 years ago
rubidium 416a47f9a2 (svn r18996) -Fix (r18993, r18994): MSVC 64 bits had somethings to complain about 15 years ago
rubidium 8ad31f1bfa (svn r18993) -Codechange: allow allocating multiple items in a SmallVector with one call. 15 years ago
rubidium 9467b7c6d6 (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 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
15 years ago
smatz 754502ac37 (svn r18633) -Codechange: fortify SmallVector a bit more 15 years ago
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 15 years ago
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. 15 years ago
rubidium ba92913b19 (svn r18438) -Codechange [FS#3337]: introduce a template for Clamp (fonsinchen) and reuse template functions in their non-template counterparts. 15 years ago
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) 16 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