(svn r7650) [cbh] - Codechange: For the time being, re-enable the invalid-raid debug statements custombridgeheads
authorcelestar
Sat, 30 Dec 2006 17:08:50 +0000
branchcustombridgeheads
changeset 5605 3864438e7cb2
parent 5604 729d54e97b94
child 5606 a8e391b7b10a
(svn r7650) [cbh] - Codechange: For the time being, re-enable the invalid-raid debug statements
train_cmd.c
--- 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;
 				}