diff options
author | tron <tron@openttd.org> | 2005-03-06 12:31:07 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-03-06 12:31:07 +0000 |
commit | a747e2bb97134d9f65de06b4418aa3bb55adcec1 (patch) | |
tree | 592182b2e00ab583223fdd73488cf31e8902608b /train_cmd.c | |
parent | 4c9b6b44d59fa8109b5e0304a4aeb388fab17fa7 (diff) | |
download | openttd-a747e2bb97134d9f65de06b4418aa3bb55adcec1.tar.xz |
(svn r1934) Small cleanup (uint -> TileIndex, (uint)-1 -> INVALID_TILE and similar stuff)
Diffstat (limited to 'train_cmd.c')
-rw-r--r-- | train_cmd.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/train_cmd.c b/train_cmd.c index ac39e4b1a..645a84e6c 100644 --- a/train_cmd.c +++ b/train_cmd.c @@ -2597,7 +2597,7 @@ reverse_train_direction: } -extern uint CheckTunnelBusy(uint tile, int *length); +extern TileIndex CheckTunnelBusy(TileIndex tile, uint *length); /** * Deletes/Clears the last wagon of a crashed train. It takes the engine of the @@ -2635,10 +2635,9 @@ static void DeleteLastWagon(Vehicle *v) DisableTrainCrossing(v->tile); if (v->u.rail.track == 0x40) { // inside a tunnel - int length; - TileIndex endtile = CheckTunnelBusy(v->tile, &length); + TileIndex endtile = CheckTunnelBusy(v->tile, NULL); - if (endtile == (uint)-1) // tunnel is busy (error returned) + if (endtile == INVALID_TILE) // tunnel is busy (error returned) return; if ((v->direction == 1) || (v->direction == 5) ) |