diff options
author | peter1138 <peter1138@openttd.org> | 2006-04-11 10:45:06 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2006-04-11 10:45:06 +0000 |
commit | 5f24141cb8ca3fbf7fcce9a30378f938e9206e03 (patch) | |
tree | 0906f88869bf7275770611edc4c0286f0131312f /rail_cmd.c | |
parent | da428dca703d9c5e8c948bbab9adbb6e7b10d29f (diff) | |
download | openttd-5f24141cb8ca3fbf7fcce9a30378f938e9206e03.tar.xz |
(svn r4354) [Elrail][NewGRF] Codechange: Drawing of custom waypoints with custom ground sprites used the index of the rail type as an offset. With the introduction of elrails this offset is incorrect, so instead there is now a lookup table within the RailTypeInfo struct to explicitly list the offset.
Diffstat (limited to 'rail_cmd.c')
-rw-r--r-- | rail_cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rail_cmd.c b/rail_cmd.c index 9559d4015..c3e964c23 100644 --- a/rail_cmd.c +++ b/rail_cmd.c @@ -1382,7 +1382,7 @@ static void DrawTile_Track(TileInfo *ti) * up to the GRF file to decide that. */ image = cust->ground_sprite; - image += (image < _custom_sprites_base) ? rti->total_offset : GetRailType(ti->tile); + image += (image < _custom_sprites_base) ? rti->total_offset : GetRailTypeInfo(GetRailType(ti->tile))->custom_ground_offset; DrawGroundSprite(image); |