(svn r3947) use TOGGLEBIT() instead of manual bit toggling in CmdReverseTrainDirection (pointed out by glx)

pull/155/head
bjarni 19 years ago
parent 76ae9585dd
commit 69399cfcb5

@ -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

Loading…
Cancel
Save