diff options
author | darkvater <darkvater@openttd.org> | 2004-11-14 18:18:28 +0000 |
---|---|---|
committer | darkvater <darkvater@openttd.org> | 2004-11-14 18:18:28 +0000 |
commit | 183c33931d95f13c95882cd7a9300678efef97cb (patch) | |
tree | 1ea88e661641af45692ac47a290cc8e5ec186630 /rail_cmd.c | |
parent | a348f74c65495651424975bb8ad0ffe1704b7013 (diff) | |
download | openttd-183c33931d95f13c95882cd7a9300678efef97cb.tar.xz |
(svn r605) -newgrf: Framework for supporting variational spritegroups . Deterministic only at the moment, but random ones support shouldn't be that difficult now It doesn't do anything, but makes these actions actually possible (pasky).
Diffstat (limited to 'rail_cmd.c')
-rw-r--r-- | rail_cmd.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/rail_cmd.c b/rail_cmd.c index 2406c800c..51e95f7f4 100644 --- a/rail_cmd.c +++ b/rail_cmd.c @@ -1551,7 +1551,8 @@ static void DrawTile_Track(TileInfo *ti) DrawTileSeqStruct const *seq; // emulate station tile - open with building DrawTileSprites *cust = &stat->renderdata[2 + (m5 & 0x1)]; - uint32 relocation = GetCustomStationRelocation(stat, 0); + /* FIXME: NULL Station! --pasky */ + uint32 relocation = GetCustomStationRelocation(stat, NULL, 0); image = cust->ground_sprite; if (image & 0x8000) image = (image & 0x7FFF) + tracktype_offs; @@ -1633,7 +1634,7 @@ void DrawWaypointSprite(int x, int y, int stat_id) assert(stat); - relocation = GetCustomStationRelocation(stat, 1); + relocation = GetCustomStationRelocation(stat, NULL, 1); // emulate station tile - open with building // add 1 to get the other direction cust = &stat->renderdata[2]; |