mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-09-01 10:59:12 +00:00
(svn r242) -Fix: Pathfinding bug for road vehicles introduced in r160 fixed (blathijs)
-Fix: Pathfinding under bridges bug for ships introduced in r160 fixed (Darkvater)
This commit is contained in:
@@ -1047,13 +1047,6 @@ static uint32 GetTileTrackStatus_Road(uint tile, TransportType mode) {
|
||||
r *= 0x10001;
|
||||
}
|
||||
return r;
|
||||
} else if ((b&0xF0) == 0x20) {
|
||||
/* Depot */
|
||||
/* We reverse the dir because it points out of the
|
||||
* exit, and we want to get in. Maybe we should return
|
||||
* both dirs here? */
|
||||
byte dir = _reverse_dir[b&3];
|
||||
return 1 << _dir_to_straight_trackdir[dir];
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user