mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(svn r3947) use TOGGLEBIT() instead of manual bit toggling in CmdReverseTrainDirection (pointed out by glx)
This commit is contained in:
parent
d8dcedcfd2
commit
a137268f13
@ -1609,7 +1609,7 @@ static void ReverseTrainDirection(Vehicle *v)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (flags & DC_EXEC) {
|
if (flags & DC_EXEC) {
|
||||||
v->u.rail.flags ^= 1 << VRF_REVERSE_DIRECTION;
|
TOGGLEBIT(v->u.rail.flags, VRF_REVERSE_DIRECTION);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
//turn the whole train around
|
//turn the whole train around
|
||||||
|
Loading…
Reference in New Issue
Block a user