mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r5951) - Codechange: GetVehicleOutOfTunnelTile() never did anything, and making it work properly only resulted in massive performance drops, and it not working properly also seemed to work, so make it not work properly once again.
This commit is contained in:
parent
dcd6a528c5
commit
3e087242a7
@ -1432,6 +1432,9 @@ static uint32 VehicleEnter_TunnelBridge(Vehicle *v, TileIndex tile, int x, int y
|
|||||||
* @return the exit-tile of the tunnel based on the vehicle's direction */
|
* @return the exit-tile of the tunnel based on the vehicle's direction */
|
||||||
TileIndex GetVehicleOutOfTunnelTile(const Vehicle *v)
|
TileIndex GetVehicleOutOfTunnelTile(const Vehicle *v)
|
||||||
{
|
{
|
||||||
|
#if 1
|
||||||
|
return v->tile;
|
||||||
|
#else
|
||||||
TileIndex tile = v->tile;
|
TileIndex tile = v->tile;
|
||||||
DiagDirection dir = DirToDiagDir(v->direction);
|
DiagDirection dir = DirToDiagDir(v->direction);
|
||||||
TileIndexDiff delta = TileOffsByDir(dir);
|
TileIndexDiff delta = TileOffsByDir(dir);
|
||||||
@ -1447,6 +1450,7 @@ TileIndex GetVehicleOutOfTunnelTile(const Vehicle *v)
|
|||||||
}
|
}
|
||||||
|
|
||||||
return tile;
|
return tile;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
const TileTypeProcs _tile_type_tunnelbridge_procs = {
|
const TileTypeProcs _tile_type_tunnelbridge_procs = {
|
||||||
|
Loading…
Reference in New Issue
Block a user