matthijs [Fri, 17 Jun 2005 00:22:46 +0000] rev 1944
(svn r2450) * Codechange: Replaced all uses of the arrays in tile.h with calls to the associated wrapper functions.
* Codechange: Made npf.c use some map array accessing wrappers instead of direct access.
* Codechange/Fix: Named every enum in tile.h. Fixes a nasty bug on MSVC where arrays would be initialised with zeroes (tnx Asterix_)
* Removed magic numbers from tables in tile.c.
* Added some explicit casts in tile.h.
matthijs [Thu, 16 Jun 2005 20:54:37 +0000] rev 1943
(svn r2449) * Added an extra warning to the stopall command, "For debugging only!".
matthijs [Thu, 16 Jun 2005 18:04:02 +0000] rev 1942
(svn r2448) General cleanup of rail related code, more to follow.
* Add: rail.[ch] for rail-related enums and wrapper functions.
* Codechange: Removed dozens of magic numbers with below enums.
* Codechange: Rewrote CheckTrackCombination().
* Add: TILE_SIZE, TILE_PIXELS and TILE_HEIGHT constants.
* Add: enums RailTileType, RailTileSubtype, SignalType to mask against the map arrays.
* Add: enums Track, TrackBits, Trackdir, TrackdirBits for railway track data. (Note that the old RAIL_BIT constants are replaced by TRACK_BIT ones).
* Add: enums Direction and DiagDirection
* Codechange: Moved a bunch of track(dir) related lookup arrays from npf.[ch] to rail.[ch].
* Codechange: move RailType enum from tile.h to rail.h.
* Add: Wrapper functions for masking signal status in the map arrays: SignalAlongTrackdir, SignalAgainstTrackdir and SignalOnTrack.
* Add: Wrapper functions to access rail tiles, using above enums
* Add: Wrapper functions to modify tracks, trackdirs, directions, etc.
* Add: Wrapper functions for all lookup arrays in rail.[ch] (Arrays are still used in parts of the code)
* Codechange: Renamed some variables and arguments to better represent what they contain (railbit -> track, bits -> trackdirbits, etc.).
* Codechange: Don't use FindLandscapeHeight() in CmdRemoveSingleRail(), since it returns way too much info. Use GetTileSlope() instead.
* Codechange: [NPF] Removed some unused globals and code from npf.c.
matthijs [Thu, 16 Jun 2005 17:53:40 +0000] rev 1941
(svn r2447) * Add: [NPF] Penalty for road vehicles making turns.
matthijs [Thu, 16 Jun 2005 01:25:01 +0000] rev 1940
(svn r2446) * Made os/debian/rules executable.
matthijs [Thu, 16 Jun 2005 00:54:19 +0000] rev 1939
(svn r2445) * Add: "stopall" console command, which forcibly stops all vehicles (useful for debugging).
hackykid [Wed, 15 Jun 2005 17:27:14 +0000] rev 1938
(svn r2444) - CodeChange: Add an enum for demagicifying the values of the 'flags' parameter of DrawFrameRect(). (_Abraxa_)
celestar [Wed, 15 Jun 2005 17:18:32 +0000] rev 1937
(svn r2443) -Fix: somehow I delete one line too many :(
miham [Wed, 15 Jun 2005 17:09:24 +0000] rev 1936
(svn r2442) [Translations] Updated to 2005-06-15 #2. (27+X strs / all lang)
[Translations] 10 strings got added, 8 strings got changed in english.txt, lots of work ahead
celestar [Wed, 15 Jun 2005 16:58:15 +0000] rev 1935
(svn r2441) -Feature: You can now give transfer order to set up feeder systems