summaryrefslogtreecommitdiff
path: root/bridge.h
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2005-10-01 17:38:48 +0000
committerpeter1138 <peter1138@openttd.org>2005-10-01 17:38:48 +0000
commitadc5c1230fa62ff4ae3f6a2a2f13c5eb4908209d (patch)
tree5ad5ec4ad11a7d9c1ad81b43fe378e6f3be0276d /bridge.h
parent0cc45ecd8edb44a860470cd906f89ccb3fcd6203 (diff)
downloadopenttd-adc5c1230fa62ff4ae3f6a2a2f13c5eb4908209d.tar.xz
(svn r3004) -Feature, NewGRF: Support loading of bridge attributes and tables from GRF. Currently drawing tall pillars uses old data.
Diffstat (limited to 'bridge.h')
-rw-r--r--bridge.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/bridge.h b/bridge.h
index 6b16dac18..c3a2f4c57 100644
--- a/bridge.h
+++ b/bridge.h
@@ -15,8 +15,11 @@ typedef struct Bridge {
uint16 speed; ///< maximum travel speed
PalSpriteID sprite; ///< the sprite which is used in the GUI (possibly with a recolor sprite)
StringID material; ///< the string that contains the bridge description
+ PalSpriteID **sprite_table; ///< table of sprites for drawing the bridge
+ byte flags; ///< bit 0 set: disable drawing of far pillars.
} Bridge;
-extern const Bridge _bridge[MAX_BRIDGES];
+extern const Bridge orig_bridge[MAX_BRIDGES];
+Bridge _bridge[MAX_BRIDGES];
#endif /* BRIDGE_H */