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
commitab049c7bca352a62a9668fdeb6c197c39ad84dd9 (patch)
tree50fb0bab688d59ca14bf9929118d8dce34567527 /railtypes.h
parentb17b87469c353393e05b9cf3c7e391edc2332dab (diff)
downloadopenttd-ab049c7bca352a62a9668fdeb6c197c39ad84dd9.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,
},
};