(svn r3947) use TOGGLEBIT() instead of manual bit toggling in CmdReverseTrainDirection (pointed out by glx)
authorbjarni
Sat, 18 Mar 2006 14:35:54 +0000
changeset 3259 ce30772897f8
parent 3258 1c079364726d
child 3260 ed19f95eb4f7
(svn r3947) use TOGGLEBIT() instead of manual bit toggling in CmdReverseTrainDirection (pointed out by glx)
train_cmd.c
--- a/train_cmd.c	Sat Mar 18 13:20:50 2006 +0000
+++ b/train_cmd.c	Sat Mar 18 14:35:54 2006 +0000
@@ -1609,7 +1609,7 @@
 		}
 
 		if (flags & DC_EXEC) {
-			v->u.rail.flags ^= 1 << VRF_REVERSE_DIRECTION;
+			TOGGLEBIT(v->u.rail.flags, VRF_REVERSE_DIRECTION);
 		}
 	} else {
 		//turn the whole train around