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 /railtypes.h | |
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 'railtypes.h')
-rw-r--r-- | railtypes.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/railtypes.h b/railtypes.h index 1b9b665c4..48f13286a 100644 --- a/railtypes.h +++ b/railtypes.h @@ -51,6 +51,9 @@ const RailtypeInfo _railtypes[] = { /* bridge offset */ 0, + + /* custom ground offset */ + 0, }, /** Electrified railway */ @@ -100,7 +103,10 @@ const RailtypeInfo _railtypes[] = { 0, /* bridge offset */ - 0 + 0, + + /* custom ground offset */ + 0, }, /** Monorail */ @@ -147,6 +153,9 @@ const RailtypeInfo _railtypes[] = { /* bridge offset */ 16, + + /* custom ground offset */ + 1, }, /** Maglev */ @@ -193,5 +202,8 @@ const RailtypeInfo _railtypes[] = { /* bridge offset */ 24, + + /* custom ground offset */ + 2, }, }; |