(svn r8110) -Codechange: direct Vehicle::current_order.type changes (to OT_LOADING and OT_LEAVESTATION) replaced by v->BeginLoading() and v->LeaveStation() calls. This should allow easy hooking of those state transitions in order to maintain vehicle loading queue.

This commit is contained in:
KUDr
2007-01-13 18:55:54 +00:00
parent 1f0206f62d
commit 9bfb3f08d9
6 changed files with 25 additions and 12 deletions

View File

@@ -1370,7 +1370,7 @@ static void AircraftEntersTerminal(Vehicle *v)
}
old_order = v->current_order;
v->current_order.type = OT_LOADING;
v->BeginLoading();
v->current_order.flags = 0;
if (old_order.type == OT_GOTO_STATION &&