town_cmd.c
Sat, 25 Jun 2005 16:44:57 +0000 tron (svn r2487) Replace TILE_XY by TileXY/TileDiffXY
Sat, 25 Jun 2005 06:15:43 +0000 tron (svn r2486) Turn TILE_FROM_XY into an inline function and rename it to TileVirtXY
Fri, 24 Jun 2005 12:38:35 +0000 tron (svn r2483) Replace almost 500 "uint tile" (and variants) with "TileIndex tile"
Tue, 21 Jun 2005 16:28:17 +0000 celestar (svn r2468) -Codechange: Got rid of DEREF_PLAYER and replaced it by GetPlayer
Wed, 08 Jun 2005 09:03:29 +0000 tron (svn r2434) Fix some defects in r2433
Tue, 07 Jun 2005 21:37:00 +0000 Darkvater (svn r2433) - CodeChange: unmagicify all road/train crossings with IsLevelCrossing() function (peter1138)
Sat, 04 Jun 2005 12:13:24 +0000 tron (svn r2408) Introduce SetTileOwner() and use it
Sat, 04 Jun 2005 11:56:32 +0000 tron (svn r2407) Use {Get,Is}TileOwner to get/check the owner of a tile and fix some bogus reads of _map_owner
Thu, 02 Jun 2005 19:30:21 +0000 Darkvater (svn r2397) - CodeChange: rename all "ttd" files to "openttd" files.
Mon, 30 May 2005 22:16:05 +0000 Darkvater (svn r2387) - CodeChange: made the saveload code more readable and also removed the 'byte' saveload arrays which means you can save an array of more than 255 elements, or bigger structs than 255 bytes. This doesn't yet solve the problem that a chunk can be a maximum of 16384 big.
Tue, 17 May 2005 20:58:58 +0000 Darkvater (svn r2345) - Fix: Don't allow stuff to be renamed to nothing if we don't support it. Only valid ones are signs (delete) and waypoints (rename to default).
Sun, 15 May 2005 18:50:55 +0000 tron (svn r2324) Introduce _cmd_text for passing strings with a command instead of abusing _decode_parameters as text buffer. This should prevent several possible buffer overruns and is a bit cleaner to use. As bonus it reduces the size of most command packets by 79 bytes.
Thu, 12 May 2005 00:11:37 +0000 Darkvater (svn r2297) - CodeChange: server-check the next batch of commands.
Sun, 03 Apr 2005 13:37:35 +0000 Darkvater (svn r2142) - Fix: Game no longer crashes when you want to remove a piece of road under a bridge that belongs to the town. TODO: railcrossings store owner somewhere else, put it into _map_owner[]!
Sun, 20 Mar 2005 00:32:26 +0000 pasky (svn r2033) - Fix: Fix some more desync by saving the town growth frequency iterator _cur_town_iter. Needed to bump a svg revision for that thanks to the braindead SlGlob thing, or at least I don't know how to do it without bumping it.
Thu, 17 Mar 2005 23:12:23 +0000 pasky (svn r2021) Fix: Enlarge _cur_town_ctr from byte to uint32 so that all the towns are considered when growing them even for big maps, where much more than 256 towns are around; reported by Tomasz Dubi?ski <uboottd@hydra.polsl.gliwice.pl>. The savegame still saves just the lowest 8 bits but that doesn't hurt so much.
Sat, 12 Mar 2005 21:21:47 +0000 Darkvater (svn r2004) - Fix: [ 1149487 ] Autosave ignoring settings
Mon, 07 Mar 2005 13:20:22 +0000 pasky (svn r1955) Fix: Make the town growth frequency scale properly both up and down. The scaling is now also based on the number of towns instead of the map size. (In cooperation with HackyKid.)
Sun, 06 Mar 2005 23:46:52 +0000 pasky (svn r1952) Fix: Hopefully fixed the enormous towns growth slowdown in large maps. (Inspired by toholio.)
Sat, 05 Mar 2005 13:49:43 +0000 pasky (svn r1925) Fixed an infinite loop if the town generator runs out of town names. The number of generated towns is then limited by the number of available names.
Thu, 17 Feb 2005 10:56:19 +0000 celestar (svn r1881) -Fix: [ 1119308 ] Max passengers / mail variables are now 32 bit
Sun, 13 Feb 2005 09:42:49 +0000 celestar (svn r1866) -Fix: Intercepted generated maps with 0 towns on it. Currently just an
Mon, 07 Feb 2005 10:41:45 +0000 tron (svn r1839) Move GetTileSlope() and GetTileZ() into tile.[ch] and use more explicit types as parameters
Sun, 06 Feb 2005 20:53:31 +0000 tron (svn r1832) Next byte -> char iteration: custom names
Sun, 06 Feb 2005 20:29:32 +0000 truelight (svn r1831) -Fix: Scenario Editor now handles human-made roads better (try to build
Sun, 06 Feb 2005 08:18:00 +0000 tron (svn r1813) Declare functions implemented in strings.c in their own shiny new header (though i think some of these function don't belong into strings.c)
Sat, 05 Feb 2005 22:50:33 +0000 tron (svn r1808) Use strcmp() instead of home brewed function str_eq()
Fri, 04 Feb 2005 13:56:51 +0000 truelight (svn r1784) -Fix: removed ClosestTownFromTile where possible, or replaced it
Wed, 02 Feb 2005 14:17:13 +0000 celestar (svn r1768) -Codechange: Store town index in _map2 of town tiles
Tue, 01 Feb 2005 18:46:49 +0000 truelight (svn r1765) -Fix: on loading, the total amount of towns wasn't reset to zero
Tue, 01 Feb 2005 18:32:01 +0000 truelight (svn r1764) -Add: dynamic towns, you can now have up to 64k towns (let me know when
Mon, 31 Jan 2005 21:57:05 +0000 tron (svn r1756) Cleanup: if cascade -> switch, uint -> TileIndex
Mon, 31 Jan 2005 07:23:15 +0000 tron (svn r1749) Move the functions which calculate distances to map.[ch] and give the more meaningful names
Sat, 29 Jan 2005 12:19:05 +0000 tron (svn r1713) Split off several functions which query/set information about a single tile from map.h and put them into a seperate file tile.h
Fri, 28 Jan 2005 15:31:04 +0000 tron (svn r1706) Implement ScaleByMapSize() and ScaleByMapSize1D()
Tue, 25 Jan 2005 21:43:57 +0000 tron (svn r1676) Increase the size of TileIndex and TileIndexDiff to 32bits and adapt the save/load data and some other parts of the code to that change
Sat, 22 Jan 2005 20:23:18 +0000 tron (svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
Fri, 21 Jan 2005 16:51:25 +0000 celestar (svn r1581) Added a display for the total map population to the town display (Jango)
Sun, 16 Jan 2005 14:06:22 +0000 tron (svn r1542) Rename TileHeight to TilePixelHeight, because this is what it actually returns
Sun, 16 Jan 2005 11:24:58 +0000 tron (svn r1536) Move GET_TILEHEIGHT, GET_TILETYPE and IS_TILETYPE to map.h, turn them into inline functions and add some asserts
Fri, 14 Jan 2005 09:20:12 +0000 celestar (svn r1504) enummed town ratings (Jango)
Fri, 07 Jan 2005 17:02:43 +0000 tron (svn r1414) Move TileIndex, TILE_MASK and GET_TILE_[XY] to map.h and turn the latter into inline functions names Tile[XY]
Thu, 06 Jan 2005 22:31:58 +0000 truelight (svn r1407) -Codechange: changed a lot around _stations, _vehicles, _towns and _industries
Thu, 06 Jan 2005 11:39:00 +0000 tron (svn r1396) Introduce TileIndexDiffC - the compile time version of TileIndexDiff
Wed, 05 Jan 2005 13:32:03 +0000 tron (svn r1386) Move TileIndexDiff to map.h
Mon, 03 Jan 2005 18:59:58 +0000 tron (svn r1344) Use MapSize[XY]() (or MapSize()/MapMax[XY]() where appropriate) instead of TILES_[XY]
Fri, 31 Dec 2004 18:59:22 +0000 truelight (svn r1313) -Fix: fixed MSVC problem
Fri, 31 Dec 2004 18:57:24 +0000 truelight (svn r1312) -Add: Patch which is on by default: population in label of the town
Thu, 30 Dec 2004 10:03:35 +0000 truelight (svn r1301) -Codechange: _industries finally has FOR_ALL_INDUSTRIES too
Tue, 28 Dec 2004 11:51:31 +0000 truelight (svn r1288) -Codechange: changed _map2 to an uint16. It is still saved and loaded as
Wed, 15 Dec 2004 22:18:54 +0000 tron (svn r1117) Move map arrays and some related macros into their own files map.c and map.h
Sat, 04 Dec 2004 17:54:56 +0000 truelight (svn r942) -Merged branch/network back into the trunk
Thu, 02 Dec 2004 22:53:07 +0000 tron (svn r901) Small step in the process to clean up the DPARAM mess:
Fri, 26 Nov 2004 22:29:02 +0000 pasky (svn r831) Remove station-specific roadbits magic. Tron already fixed road stations so that they don't give out roadbits in r780.
Fri, 26 Nov 2004 22:21:12 +0000 pasky (svn r830) Move the MP_STATION roadbits guard to GetTownRoadBitsByTile() wrapper of GetRoadBitsByTile(). This should really and for once fix the road-behind-road-station bug.
Thu, 25 Nov 2004 10:47:30 +0000 tron (svn r815) Include strings.h only in the files which need it.
Tue, 23 Nov 2004 22:36:11 +0000 tron (svn r787) Invert the sense of the DO_TRANS_BUILDINGS flag to be consistent with its own name and all other DO_* flags.
Mon, 22 Nov 2004 18:42:03 +0000 tron (svn r764) Enumerate the houses only one per town can exist and use the enums instead of magic numbers to check for these
Mon, 22 Nov 2004 11:01:30 +0000 tron (svn r760) Replace some bit-juggling with bit fields
Mon, 22 Nov 2004 10:09:37 +0000 tron (svn r756) Demystify and explain some piece of code regarding which house sprite to draw