(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.
authorDarkvater
Sat, 19 Aug 2006 15:24:40 +0000
changeset 4304 5e26af218efd
parent 4303 491076cb1ce6
child 4305 c25b05028b71
(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.
tunnelbridge_cmd.c
--- a/tunnelbridge_cmd.c	Sat Aug 19 12:01:04 2006 +0000
+++ b/tunnelbridge_cmd.c	Sat Aug 19 15:24:40 2006 +0000
@@ -1432,6 +1432,9 @@
  * @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 @@
 	}
 
 	return tile;
+#endif
 }
 
 const TileTypeProcs _tile_type_tunnelbridge_procs = {