diff options
author | bjarni <bjarni@openttd.org> | 2006-03-18 14:35:54 +0000 |
---|---|---|
committer | bjarni <bjarni@openttd.org> | 2006-03-18 14:35:54 +0000 |
commit | 69399cfcb5cafb6da1f9b9b80e62f6914fe474a9 (patch) | |
tree | c490983dbe5484539f73148409462c6b388c59d4 | |
parent | 76ae9585dd17e7d952fc25980d4bf5ffbfc7c52a (diff) | |
download | openttd-69399cfcb5cafb6da1f9b9b80e62f6914fe474a9.tar.xz |
(svn r3947) use TOGGLEBIT() instead of manual bit toggling in CmdReverseTrainDirection (pointed out by glx)
-rw-r--r-- | train_cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |