mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-06 22:37:22 +00:00
(svn r8158) -Fix: The submarine disaster failed to move at all due to wrong masking of trackbits
This commit is contained in:
parent
f3796eee66
commit
12f0e67437
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user