summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-04-03 12:41:31 +0000
committerpeter1138 <peter1138@openttd.org>2006-04-03 12:41:31 +0000
commit39f21f5d857266622ee943d55c3d48df20f2d72a (patch)
treeb770a253e475bf6ff5dff8a8829535a584c88c79
parente2db84101e2857ce0ff7ed927cc9a80e603fd52d (diff)
downloadopenttd-39f21f5d857266622ee943d55c3d48df20f2d72a.tar.xz
(svn r4256) - Codechange: Replace lone map access in vehicle.c with its map accessor.
-rw-r--r--vehicle.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/vehicle.c b/vehicle.c
index d8aac3e1b..3b8254323 100644
--- a/vehicle.c
+++ b/vehicle.c
@@ -23,6 +23,7 @@
#include "station.h"
#include "rail.h"
#include "train.h"
+#include "industry_map.h"
#include "station_map.h"
#define INVALID_COORD (-0x8000)
@@ -1272,7 +1273,7 @@ static void BubbleTick(Vehicle *v)
SndPlayVehicleFx(SND_31_EXTRACT, v);
tile = TileVirtXY(v->x_pos, v->y_pos);
- if (IsTileType(tile, MP_INDUSTRY) && _m[tile].m5 == 0xA2) AddAnimatedTile(tile);
+ if (IsTileType(tile, MP_INDUSTRY) && GetIndustryGfx(tile) == 0xA2) AddAnimatedTile(tile);
}
v->engine_type = et;