summaryrefslogtreecommitdiff
path: root/grfspecial.c
diff options
context:
space:
mode:
authordarkvater <darkvater@openttd.org>2004-11-14 14:10:03 +0000
committerdarkvater <darkvater@openttd.org>2004-11-14 14:10:03 +0000
commitccc496ba2ce07be7bd8faf0a084e983dbed5e80b (patch)
treec98b22919e336453a225758147c78c898731875e /grfspecial.c
parent5663926aaf2ccbc520cd2df08738e4a6b95229d3 (diff)
downloadopenttd-ccc496ba2ce07be7bd8faf0a084e983dbed5e80b.tar.xz
(svn r591) -newgrf: Store whole struct StationSpec in SetCustomStation(), not just the rendering data. This will be needed for variational stationspecs (pasky).
Diffstat (limited to 'grfspecial.c')
-rw-r--r--grfspecial.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/grfspecial.c b/grfspecial.c
index 334d70733..55b813bd5 100644
--- a/grfspecial.c
+++ b/grfspecial.c
@@ -21,12 +21,6 @@ extern int _skip_sprites;
extern int _replace_sprites_count[16];
extern int _replace_sprites_offset[16];
-struct StationSpec {
- uint32 classid;
- byte tiles;
- DrawTileSprites renderdata[8];
-};
-
struct GRFFile {
char *filename;
uint32 grfid;
@@ -1225,10 +1219,7 @@ static void NewVehicle_SpriteGroupMapping(byte *buf, int len)
seq->image += _cur_grffile->spritegroups[groupid].loading[0];
}
}
- /* FIXME: This means several GRF files defining new stations
- * will override each other, but the stid should be GRF-specific
- * instead! --pasky */
- SetCustomStation(stat->classid, stid, stat->renderdata, stat->tiles);
+ SetCustomStation(stid, stat);
stat->classid = 0;
}
return;