summaryrefslogtreecommitdiff
path: root/economy.c
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2006-04-03 05:32:11 +0000
committercelestar <celestar@openttd.org>2006-04-03 05:32:11 +0000
commit3aa1e38be6e0a3c01346fe4db1bb92b148d0f2a9 (patch)
tree7d8babf7cbe0b9ecf1ebc12e27848ef54f79d0e3 /economy.c
parenta6403bd50a163434cb4a8a9354ac14ef6b0b90c6 (diff)
downloadopenttd-3aa1e38be6e0a3c01346fe4db1bb92b148d0f2a9.tar.xz
(svn r4246) -Codechange. Replaced about 100 occurences of '16' by TILE_SIZE
Diffstat (limited to 'economy.c')
-rw-r--r--economy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/economy.c b/economy.c
index a4a0a566b..1bc1d3e93 100644
--- a/economy.c
+++ b/economy.c
@@ -1448,7 +1448,7 @@ int LoadUnloadVehicle(Vehicle *v)
if (v->type == VEH_Train) {
// Each platform tile is worth 2 rail vehicles.
- int overhang = v->u.rail.cached_total_length - GetStationPlatforms(st, v->tile) * 16;
+ int overhang = v->u.rail.cached_total_length - GetStationPlatforms(st, v->tile) * TILE_SIZE;
if (overhang > 0) {
unloading_time <<= 1;
unloading_time += (overhang * unloading_time) / 8;