diff options
author | Darkvater <Darkvater@openttd.org> | 2007-01-16 16:28:41 +0000 |
---|---|---|
committer | Darkvater <Darkvater@openttd.org> | 2007-01-16 16:28:41 +0000 |
commit | 7e69f3f7b1aaa2ea32b5de5737fb89f11f521594 (patch) | |
tree | fe283432a50c81c25275716206c555c31e2ec37f /src | |
parent | 39ca1ef7aed637a774c4392af45cd7d5b7afd5dc (diff) | |
download | openttd-7e69f3f7b1aaa2ea32b5de5737fb89f11f521594.tar.xz |
(svn r8158) -Fix: The submarine disaster failed to move at all due to wrong masking of trackbits
Diffstat (limited to 'src')
-rw-r--r-- | src/disaster_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/disaster_cmd.cpp b/src/disaster_cmd.cpp index c63401800..aeddad150 100644 --- a/src/disaster_cmd.cpp +++ b/src/disaster_cmd.cpp @@ -672,7 +672,7 @@ static void DisasterTick_5_and_6(Vehicle *v) tile = v->tile + TileOffsByDiagDir(DirToDiagDir(v->direction)); if (IsValidTile(tile) && - (r=GetTileTrackStatus(tile,TRANSPORT_WATER),(byte)(r+(r >> 8)) == 0x3F) && + (r=GetTileTrackStatus(tile,TRANSPORT_WATER),(byte)(r|(r >> 8)) == 0x3F) && !CHANCE16(1,90)) { GetNewVehiclePos(v, &gp); SetDisasterVehiclePos(v, gp.x, gp.y, v->z_pos); |