1
0
Fork 0

(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.

release/0.5
Darkvater 2006-08-19 15:24:40 +00:00
parent d0c21a1ea7
commit 3c79725742
1 changed files with 4 additions and 0 deletions

View File

@ -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 */
TileIndex GetVehicleOutOfTunnelTile(const Vehicle *v)
{
#if 1
return v->tile;
#else
TileIndex tile = v->tile;
DiagDirection dir = DirToDiagDir(v->direction);
TileIndexDiff delta = TileOffsByDir(dir);
@ -1447,6 +1450,7 @@ TileIndex GetVehicleOutOfTunnelTile(const Vehicle *v)
}
return tile;
#endif
}
const TileTypeProcs _tile_type_tunnelbridge_procs = {