diff options
author | truelight <truelight@openttd.org> | 2004-09-05 16:15:22 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2004-09-05 16:15:22 +0000 |
commit | 10d54ac604b2d4d761877de1ceda07ceb3aa96bf (patch) | |
tree | ee4a252395acdf618350f3ff31b92a1b493f12ef /water_cmd.c | |
parent | 1846563cf89fc4cdd41691ddadac6b56dd8c2e58 (diff) | |
download | openttd-10d54ac604b2d4d761877de1ceda07ceb3aa96bf.tar.xz |
(svn r160) -Codechange: made GetTileTrackStatus more readable (blathijs)
-Fix: some minor fixes around GetTileTrackStatus (blathijs)
Diffstat (limited to 'water_cmd.c')
-rw-r--r-- | water_cmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/water_cmd.c b/water_cmd.c index a7740f3e1..fa22d5a1e 100644 --- a/water_cmd.c +++ b/water_cmd.c @@ -600,12 +600,12 @@ void TileLoop_Water(uint tile) static const byte _coast_tracks[16] = {0, 32, 4, 0, 16, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0}; static const byte _shipdepot_tracks[4] = {1,1,2,2}; static const byte _shiplift_tracks[12] = {1,2,1,2,1,2,1,2,1,2,1,2}; -static uint32 GetTileTrackStatus_Water(uint tile, int mode) +static uint32 GetTileTrackStatus_Water(uint tile, TransportType mode) { uint m5; uint b; - if (mode != 4) + if (mode != TRANSPORT_WATER) return 0; m5 = _map5[tile]; |