summaryrefslogtreecommitdiff
path: root/rail_cmd.c
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2004-12-28 11:51:31 +0000
committertruelight <truelight@openttd.org>2004-12-28 11:51:31 +0000
commitc2ee8d70e48a79a1f3fbe4003c82a545a29ae195 (patch)
tree31c4abf8c556a50cc2cb6846bddb8f40f21986c9 /rail_cmd.c
parent41201f488c6eb3d4862f49f419ccd9915c46c162 (diff)
downloadopenttd-c2ee8d70e48a79a1f3fbe4003c82a545a29ae195.tar.xz
(svn r1288) -Codechange: changed _map2 to an uint16. It is still saved and loaded as
an uint8 till the savegame version is bumped to version 5. Then it works automaticly as a fully uint16. So _stations[] can not be increased till after the bump!!
Diffstat (limited to 'rail_cmd.c')
-rw-r--r--rail_cmd.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/rail_cmd.c b/rail_cmd.c
index 1bb4172bf..50854d612 100644
--- a/rail_cmd.c
+++ b/rail_cmd.c
@@ -1836,7 +1836,7 @@ static void ChangeSignalStates(SetSignalsData *ssd)
for(i=0; i!=ssd->cur; i++) {
uint tile = ssd->tile[i];
byte bit = _signals_table[ssd->bit[i]];
- byte m2 = _map2[tile];
+ uint16 m2 = _map2[tile];
// presignals don't turn green if there is at least one presignal exit and none are free
if (_map3_hi[tile] & 1) {
@@ -1985,7 +1985,7 @@ static void TileLoop_Track(uint tile)
{
byte a2;
byte rail;
- byte m2;
+ uint16 m2;
byte owner;
m2 = _map2[tile] & 0xF;
@@ -2068,7 +2068,8 @@ modify_me:;
static uint32 GetTileTrackStatus_Track(uint tile, TransportType mode) {
- byte m5, a, b;
+ byte m5, a;
+ uint16 b;
uint32 ret;
if (mode != TRANSPORT_RAIL)