From a747e2bb97134d9f65de06b4418aa3bb55adcec1 Mon Sep 17 00:00:00 2001 From: tron Date: Sun, 6 Mar 2005 12:31:07 +0000 Subject: (svn r1934) Small cleanup (uint -> TileIndex, (uint)-1 -> INVALID_TILE and similar stuff) --- train_cmd.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'train_cmd.c') 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) ) -- cgit v1.2.3-54-g00ecf