diff options
author | Darkvater <darkvater@openttd.org> | 2006-08-19 15:24:40 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2006-08-19 15:24:40 +0000 |
commit | 3c79725742707b2dcf413974fe1c818e43659459 (patch) | |
tree | 75c2187314d414c9563d44ce07a08293e1fd483e | |
parent | d0c21a1ea7091b7b149b84d2bee9b7b4b2a0e846 (diff) | |
download | openttd-3c79725742707b2dcf413974fe1c818e43659459.tar.xz |
(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.
-rw-r--r-- | tunnelbridge_cmd.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tunnelbridge_cmd.c b/tunnelbridge_cmd.c index 9c6e5ec3a..6e5a91a29 100644 --- a/tunnelbridge_cmd.c +++ b/tunnelbridge_cmd.c @@ -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 = { |