Commit Graph

28 Commits (master)

Author SHA1 Message Date
Rubidium 27eadc13ec Codechange: rename TILE_ADD(XY) to TileAdd(XY) 4 months ago
Kuhnovic bf3fd6526b
Fix: use correct size parameter type in TileArea constructors (#11869) 5 months ago
Peter Nelson 49dae08a3b Codechange: Add missing override specifiers. 9 months ago
Rubidium eaae0bb5e7 Codechange: automatic adding of _t to (u)int types, and WChar to char32_t
for i in `find src -type f|grep -v 3rdparty/fmt|grep -v 3rdparty/catch2|grep -v 3rdparty/opengl|grep -v stdafx.h`; do sed 's/uint16& /uint16 \&/g;s/int8\([ >*),;[]\)/int8_t\1/g;s/int16\([ >*),;[]\)/int16_t\1/g;s/int32\([ >*),;[]\)/int32_t\1/g;s/int64\([ >*),;[]\)/int64_t\1/g;s/ uint32(/ uint32_t(/g;s/_uint8_t/_uint8/;s/Uint8_t/Uint8/;s/ft_int64_t/ft_int64/g;s/uint64$/uint64_t/;s/WChar/char32_t/g;s/char32_t char32_t/char32_t WChar/' -i $i; done
11 months ago
Rubidium b35c791d05 Codechange: use smart pointers when cloning iterators 1 year ago
Rubidium f667a831a5 Codechange: unify creation of diagonal/orthogonal iterator using smart pointers 1 year ago
Michael Lutz b0990fcff7 Codechange: Make TileIndex a "strong" typedef to give it a distinct type.
This is accomplished by changing it to a single member struct with the
appropriate operator overloads to make it all work with not too much
source modifications.
3 years ago
glx22 38c97e1492 Codechange: Replace TILE_AREA_LOOP with range-based for loops 3 years ago
S. D. Cloudt 13cc8a0cee Cleanup: Removed SVN headers 5 years ago
PeterN abe8cf4985
Codechange: Replace duplicated code with TileArea::Expand() (#7467) 5 years ago
fonsinchen 547e521381 (svn r26289) -Codechange: Make tile areas and iterators more consistent to each other. 11 years ago
rubidium 982fcb7aab (svn r26125) -Fix: make sure the tile area's variables are always properly initialised 11 years ago
planetmaker c24374f99c (svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by Eagle_rainbow) 12 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
yexo c9be5d50da (svn r23461) -Fix: handle a missing airport newgrf as graceful as possible by not crashing when loading such savegame or when an airport is removed 13 years ago
terkhen bf1b6d570b (svn r23402) -Add: Function to check if a TileArea contains a tile. (michi_cc) 13 years ago
rubidium 1a515e6344 (svn r22405) -Document: some more "random-ish" tidbits 13 years ago
rubidium d89095b3ec (svn r21843) -Codechange: move documentation towards the code to make it more likely to be updates [t-z]. 14 years ago
rubidium b20e77be92 (svn r21499) -Add: diagonal tile iterator. Based on patch by fonsinchen 14 years ago
rubidium 2e9108afe9 (svn r21496) -Fix (r21494): ofcourse older GCCs (< 4.3) have something to complain about 14 years ago
rubidium a336aacb4f (svn r21494) -Codechange: split the tile iterator in two classes 14 years ago
rubidium cdd35c6a51 (svn r21490) -Codechange: abstract/encapsulate the map area iterating a bit 14 years ago
alberth cccbc8f418 (svn r21019) -Add: Use center of industry to focus on in the industry gui. 14 years ago
terkhen 4eb6e3f060 (svn r19392) -Codechange: Increase the maximum size of a TileArea. 14 years ago
alberth a6e8c747c9 (svn r19041) -Codechange: Improve selection of tile to draw in zoomed-out smallmaps. 15 years ago
alberth 05388c953a (svn r19038) -Codechange: Move TileArea methods to their own file. 15 years ago
rubidium 28fc7b47bd (svn r18726) -Fix [FS#3463]: with non-uniform industries the 'supplies' text when building a station could be incorrect (missing a cargo)
-Change [NoAI]: AITile::GetCargoProduction now returns the number of producers and not the number of tiles of producers.
-Fix [NoAI]: AITileList_IndustryProducing would omit some tiles for at which a station would get cargo.
15 years ago
rubidium 8b88bb0c9b (svn r18714) -Codechange: move the TileArea struct to it's own header 15 years ago