(svn r3787) Use DirToDiagDir() instead of >> 1
This commit is contained in:
@@ -656,7 +656,7 @@ static void DisasterTick_5_and_6(Vehicle *v)
|
||||
if (!(v->tick_counter&1))
|
||||
return;
|
||||
|
||||
tile = v->tile + TileOffsByDir(v->direction >> 1);
|
||||
tile = v->tile + TileOffsByDir(DirToDiagDir(v->direction));
|
||||
if (IsValidTile(tile) &&
|
||||
(r=GetTileTrackStatus(tile,TRANSPORT_WATER),(byte)(r+(r >> 8)) == 0x3F) &&
|
||||
!CHANCE16(1,90)) {
|
||||
|
||||
Reference in New Issue
Block a user