From 0347fb2ab67e942826523424c35ede66d27339fe Mon Sep 17 00:00:00 2001 From: tron Date: Sun, 23 Apr 2006 13:48:16 +0000 Subject: (svn r4541) Add a type for slopes and replace many magic numbers by the appropriate enums --- train_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'train_cmd.c') diff --git a/train_cmd.c b/train_cmd.c index 710738872..f29426ced 100644 --- a/train_cmd.c +++ b/train_cmd.c @@ -2612,7 +2612,7 @@ static bool CheckCompatibleRail(const Vehicle *v, TileIndex tile) case MP_TUNNELBRIDGE: if (IsBridge(tile) && IsBridgeMiddle(tile)) { uint height; - uint tileh = GetTileSlope(tile, &height); + Slope tileh = GetTileSlope(tile, &height); // correct Z position of a train going under a bridge on slopes if (CorrectZ(tileh)) height += 8; -- cgit v1.2.3-54-g00ecf