mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r9756) -Fix [FS#755]: LeaveStation wasn't always called when a station was left.
This commit is contained in:
parent
ec9ac99d01
commit
cbd9a1bf0d
@ -3448,6 +3448,8 @@ static void CheckIfTrainNeedsService(Vehicle *v)
|
||||
return;
|
||||
}
|
||||
|
||||
if (v->current_order.type == OT_LOADING) v->LeaveStation();
|
||||
|
||||
v->current_order.type = OT_GOTO_DEPOT;
|
||||
v->current_order.flags = OF_NON_STOP;
|
||||
v->current_order.dest = depot->index;
|
||||
|
Loading…
Reference in New Issue
Block a user