From a137268f136b15b9e39582cddf26d07babeb65e1 Mon Sep 17 00:00:00 2001 From: bjarni Date: Sat, 18 Mar 2006 14:35:54 +0000 Subject: (svn r3947) use TOGGLEBIT() instead of manual bit toggling in CmdReverseTrainDirection (pointed out by glx) --- train_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/train_cmd.c b/train_cmd.c index 2f59fb314..57dff8b87 100644 --- a/train_cmd.c +++ b/train_cmd.c @@ -1609,7 +1609,7 @@ static void ReverseTrainDirection(Vehicle *v) } 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 -- cgit v1.2.3-70-g09d2