(svn r4256) - Codechange: Replace lone map access in vehicle.c with its map accessor.
authorpeter1138
Mon, 03 Apr 2006 12:41:31 +0000
changeset 3428 146dc5f172fc
parent 3427 3a512f7b7f6a
child 3429 20b7bab277c1
(svn r4256) - Codechange: Replace lone map access in vehicle.c with its map accessor.
vehicle.c
--- a/vehicle.c	Mon Apr 03 12:20:55 2006 +0000
+++ b/vehicle.c	Mon Apr 03 12:41:31 2006 +0000
@@ -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 @@
 		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;