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 | a137268f136b15b9e39582cddf26d07babeb65e1 (patch) | |
tree | c490983dbe5484539f73148409462c6b388c59d4 | |
parent | d8dcedcfd23f4e875788087c054187fe37bd8a43 (diff) | |
download | openttd-a137268f136b15b9e39582cddf26d07babeb65e1.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 |