summaryrefslogtreecommitdiff
path: root/railtypes.h
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2005-10-19 08:34:37 +0000
committercelestar <celestar@openttd.org>2005-10-19 08:34:37 +0000
commit5f604ec63a2a603d8c008210ac69760a5f552826 (patch)
tree50fb0bab688d59ca14bf9929118d8dce34567527 /railtypes.h
parent758ae7e8f63edbcc193443963e7a8cbe7dcac675 (diff)
downloadopenttd-5f604ec63a2a603d8c008210ac69760a5f552826.tar.xz
(svn r3065) -Codechange/Add: Modified the bridge drawing code so that the basic offset is read from the RailTypeInfo struct. This is (hopefully) the last DrawTile change on the way to electrified railways. While being at it, de-mystified the function a bit and added some asserts.
Diffstat (limited to 'railtypes.h')
-rw-r--r--railtypes.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/railtypes.h b/railtypes.h
index bb1b6a10c..be097383c 100644
--- a/railtypes.h
+++ b/railtypes.h
@@ -41,6 +41,9 @@ const RailtypeInfo _railtypes[] = {
/* main offset */
0,
+
+ /* bridge offset */
+ 0,
},
/** Monorail */
@@ -77,6 +80,9 @@ const RailtypeInfo _railtypes[] = {
/* main offset */
82,
+
+ /* bridge offset */
+ 16,
},
/** Maglev */
@@ -113,6 +119,9 @@ const RailtypeInfo _railtypes[] = {
/* main offset */
164,
+
+ /* bridge offset */
+ 24,
},
};