summaryrefslogtreecommitdiff
path: root/src/oldloader.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-07-16 23:55:22 +0000
committerrubidium <rubidium@openttd.org>2007-07-16 23:55:22 +0000
commit3dd6362bb8a07e36eaf621bdf5c256087fbbf8c8 (patch)
tree052fe05961ef6ef6913712ffee40515822018816 /src/oldloader.cpp
parent0f8e7e79bed67ccaa578b5d25ba250aa2051381e (diff)
downloadopenttd-3dd6362bb8a07e36eaf621bdf5c256087fbbf8c8.tar.xz
(svn r10601) -Codechange: store (and use) the type of stations instead of hardcoding station types by graphics IDs.
Diffstat (limited to 'src/oldloader.cpp')
-rw-r--r--src/oldloader.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/oldloader.cpp b/src/oldloader.cpp
index 7cadd82d5..09d949300 100644
--- a/src/oldloader.cpp
+++ b/src/oldloader.cpp
@@ -1578,12 +1578,11 @@ static bool LoadOldMain(LoadgameState *ls)
_m[i].m4 = 0; // We do not understand this TTDP station mapping (yet)
switch (_m[i].m5) {
/* We have drive through stops at a totally different place */
- case 0x53: case 0x54: _m[i].m5 += GFX_BUS_BASE_EXT - 0x53; break;
- case 0x57: case 0x58: _m[i].m5 += GFX_TRUCK_BASE_EXT - 0x57; break;
- case 0x55: case 0x56: // Bus tram stop
- case 0x59: case 0x5A: // Truck tram stop
- DEBUG(oldloader, 0, "Loading failed - we don't support trams (yet)");
- return false;
+ case 0x53: case 0x54: _m[i].m5 += 170 - 0x53; break; // Bus drive through
+ case 0x57: case 0x58: _m[i].m5 += 168 - 0x57; break; // Truck drive through
+ case 0x55: case 0x56: _m[i].m5 += 170 - 0x55; break; // Bus tram stop
+ case 0x59: case 0x5A: _m[i].m5 += 168 - 0x59; break; // Truck tram stop
+ default: break;
}
break;