summaryrefslogtreecommitdiff
path: root/vehicle.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-04-23 13:48:16 +0000
committertron <tron@openttd.org>2006-04-23 13:48:16 +0000
commit0347fb2ab67e942826523424c35ede66d27339fe (patch)
tree3f0769bd955cefba7ab80063e64546c1874e0a62 /vehicle.c
parentb5ce99c52d1ce36f56431652f7fcc67eb9d5bf6d (diff)
downloadopenttd-0347fb2ab67e942826523424c35ede66d27339fe.tar.xz
(svn r4541) Add a type for slopes and replace many magic numbers by the appropriate enums
Diffstat (limited to 'vehicle.c')
-rw-r--r--vehicle.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/vehicle.c b/vehicle.c
index 582c0b194..9ab50af98 100644
--- a/vehicle.c
+++ b/vehicle.c
@@ -137,10 +137,9 @@ static void *EnsureNoVehicleProcZ(Vehicle *v, void *data)
return v;
}
-static inline uint Correct_Z(uint tileh)
+static inline uint Correct_Z(Slope tileh)
{
// needs z correction for slope-type graphics that have the NORTHERN tile lowered
- // 1, 2, 3, 4, 5, 6 and 7
return CorrectZ(tileh) ? 8 : 0;
}