(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:
celestar
2005-10-19 08:34:37 +00:00
parent 758ae7e8f6
commit 5f604ec63a
4 changed files with 72 additions and 29 deletions

View File

@@ -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,
},
};