diff options
author | matthijs <matthijs@openttd.org> | 2005-06-17 00:22:46 +0000 |
---|---|---|
committer | matthijs <matthijs@openttd.org> | 2005-06-17 00:22:46 +0000 |
commit | 8e535337861d419c6fc9cdd450e90689fad30e7d (patch) | |
tree | a60eac6f771503fb49ad4ddc8a7898fb0e6ee996 /depot.h | |
parent | bacc5396e6e6851877da254319301bee6c1c0255 (diff) | |
download | openttd-8e535337861d419c6fc9cdd450e90689fad30e7d.tar.xz |
(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.
Diffstat (limited to 'depot.h')
-rw-r--r-- | depot.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -98,7 +98,7 @@ static inline DiagDirection GetDepotDirection(TileIndex tile, TransportType type case TRANSPORT_RAIL: case TRANSPORT_ROAD: /* Rail and road store a diagonal direction in bits 0 and 1 */ - return _map5[tile] & 3; + return (DiagDirection)(_map5[tile] & 3); case TRANSPORT_WATER: /* Water is stubborn, it stores the directions in a different order. */ switch (_map5[tile] & 3) { |