forked from mirror/OpenTTD
(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.
This commit is contained in:
@@ -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,
|
||||
},
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user