summaryrefslogtreecommitdiff
path: root/newgrf.c
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2005-09-26 19:01:49 +0000
committerpeter1138 <peter1138@openttd.org>2005-09-26 19:01:49 +0000
commitfbf06041ca6ae5a7429ba7342480fca25ab442ed (patch)
tree95e2e84c3e59ea54f0c38d658b37ca313bc134f9 /newgrf.c
parent2314431a596c25b7e48cfbc7dda452c66cd5ca32 (diff)
downloadopenttd-fbf06041ca6ae5a7429ba7342480fca25ab442ed.tar.xz
(svn r2990) Remove _engine_original_sprites and replace all uses with references to our (new) original engine/vehicle tables.
Diffstat (limited to 'newgrf.c')
-rw-r--r--newgrf.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/newgrf.c b/newgrf.c
index e204f30be..ef9d161e2 100644
--- a/newgrf.c
+++ b/newgrf.c
@@ -272,8 +272,6 @@ static bool RailVehicleChangeInfo(uint engine, int numinfo, int prop, byte **buf
FOR_EACH_OBJECT {
uint8 spriteid = grf_load_byte(&buf);
- if (spriteid == 0xFD && rvi[i].image_index != 0xFD)
- _engine_original_sprites[engine + i] = rvi[i].image_index;
rvi[i].image_index = spriteid;
}
} break;
@@ -448,11 +446,6 @@ static bool RoadVehicleChangeInfo(uint engine, int numinfo, int prop, byte **buf
if (spriteid == 0xFF)
spriteid = 0xFD; // cars have different custom id in the GRF file
- // This is currently not used but there's no reason
- // in not having it here for the future.
- if (spriteid == 0xFD && rvi[i].image_index != 0xFD)
- _engine_original_sprites[ROAD_ENGINES_INDEX + engine + i] = rvi[i].image_index;
-
rvi[i].image_index = spriteid;
}
} break;
@@ -539,11 +532,6 @@ static bool ShipVehicleChangeInfo(uint engine, int numinfo, int prop, byte **buf
if (spriteid == 0xFF)
spriteid = 0xFD; // ships have different custom id in the GRF file
- // This is currently not used but there's no reason
- // in not having it here for the future.
- if (spriteid == 0xFD && svi[i].image_index != 0xFD)
- _engine_original_sprites[SHIP_ENGINES_INDEX + engine + i] = svi[i].image_index;
-
svi[i].image_index = spriteid;
}
} break;
@@ -646,11 +634,6 @@ static bool AircraftVehicleChangeInfo(uint engine, int numinfo, int prop, byte *
if (spriteid == 0xFF)
spriteid = 0xFD; // ships have different custom id in the GRF file
- // This is currently not used but there's no reason
- // in not having it here for the future.
- if (spriteid == 0xFD && avi[i].image_index != 0xFD)
- _engine_original_sprites[AIRCRAFT_ENGINES_INDEX + engine + i] = avi[i].image_index;
-
avi[i].image_index = spriteid;
}
} break;