summaryrefslogtreecommitdiff
path: root/station_cmd.c
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2006-04-03 09:07:21 +0000
committercelestar <celestar@openttd.org>2006-04-03 09:07:21 +0000
commit69e1c716e86a855b4379504bbb94a5483a63f43e (patch)
treee106242c0ac31fc61254791e0f6fcfe95db2baad /station_cmd.c
parent6443c14ebd7ed0f9920673c218eaaa1172076a5f (diff)
downloadopenttd-69e1c716e86a855b4379504bbb94a5483a63f43e.tar.xz
(svn r4249) -Codechange: Replace more occurences of 16 by TILE_SIZE and of 8 by TILE_HEIGHT. Reverted one change from the previous commit because it was faulty
Diffstat (limited to 'station_cmd.c')
-rw-r--r--station_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/station_cmd.c b/station_cmd.c
index 06772f9e4..6c57df84e 100644
--- a/station_cmd.c
+++ b/station_cmd.c
@@ -468,7 +468,7 @@ static void StationInitialize(Station *st, TileIndex tile)
// st = Station to update for.
static void UpdateStationVirtCoord(Station *st)
{
- Point pt = RemapCoords2(TileX(st->xy) * 16, TileY(st->xy) * 16);
+ Point pt = RemapCoords2(TileX(st->xy) * TILE_SIZE, TileY(st->xy) * TILE_SIZE);
pt.y -= 32;
if (st->facilities & FACIL_AIRPORT && st->airport_type == AT_OILRIG) pt.y -= 16;