(svn r7650) [cbh] - Codechange: For the time being, re-enable the invalid-raid debug statements
--- a/train_cmd.c Sat Dec 30 17:06:34 2006 +0000
+++ b/train_cmd.c Sat Dec 30 17:08:50 2006 +0000
@@ -3046,7 +3046,7 @@
r = VehicleEnterTile(v, gp.new_tile, gp.x, gp.y);
if (r & 0x8) {
- //debug("%x & 0x8", r);
+ DEBUG(misc, 2, "%x & 0x8 (in tile)", r);
goto invalid_rail;
}
if (r & 0x2) {
@@ -3085,14 +3085,14 @@
}
if (bits == 0) {
- //debug("%x == 0", bits);
+ DEBUG(misc, 2, "%x == 0", bits);
goto invalid_rail;
}
/* Check if the new tile contrains tracks that are compatible
* with the current train, if not, bail out. */
if (!CheckCompatibleRail(v, gp.new_tile)) {
- //debug("!CheckCompatibleRail(%p, %x)", v, gp.new_tile);
+ DEBUG(misc, 2, "!CheckCompatibleRail(%p, %x)", v, gp.new_tile);
goto invalid_rail;
}
@@ -3125,7 +3125,7 @@
/* Call the landscape function and tell it that the vehicle entered the tile */
r = VehicleEnterTile(v, gp.new_tile, gp.x, gp.y);
if (r & 0x8) {
- //debug("%x & 0x8", r);
+ DEBUG(misc, 2, "%x & 0x8 (new tile)", r);
goto invalid_rail;
}