From ccc496ba2ce07be7bd8faf0a084e983dbed5e80b Mon Sep 17 00:00:00 2001 From: darkvater Date: Sun, 14 Nov 2004 14:10:03 +0000 Subject: (svn r591) -newgrf: Store whole struct StationSpec in SetCustomStation(), not just the rendering data. This will be needed for variational stationspecs (pasky). --- grfspecial.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'grfspecial.c') 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; -- cgit v1.2.3-70-g09d2