mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-22 05:59:10 +00:00
(svn r12711) -Codechange: remove unneeded loops
This commit is contained in:
@@ -1811,8 +1811,7 @@ static void ReverseTrainDirection(Vehicle *v)
|
||||
InvalidateWindowData(WC_VEHICLE_DEPOT, v->tile);
|
||||
}
|
||||
|
||||
/* set reversed flag on all parts */
|
||||
for (Vehicle *u = v; u != NULL; u = u->Next()) ToggleBit(u->u.rail.flags, VRF_TOGGLE_REVERSE);
|
||||
ToggleBit(v->u.rail.flags, VRF_TOGGLE_REVERSE);
|
||||
|
||||
ClrBit(v->u.rail.flags, VRF_REVERSING);
|
||||
|
||||
|
Reference in New Issue
Block a user