From 69399cfcb5cafb6da1f9b9b80e62f6914fe474a9 Mon Sep 17 00:00:00 2001 From: bjarni Date: Sat, 18 Mar 2006 14:35:54 +0000 Subject: [PATCH] (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 2f59fb3140..57dff8b872 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