From 2efecd34c4237bb52981c92241a7b76c46896c4c Mon Sep 17 00:00:00 2001 From: rubidium Date: Mon, 7 May 2007 16:21:34 +0000 Subject: (svn r9808) -Codechange: unify the HandleLoading functions. --- src/vehicle.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/vehicle.h') diff --git a/src/vehicle.h b/src/vehicle.h index 37bff24ca..6fe8f5521 100644 --- a/src/vehicle.h +++ b/src/vehicle.h @@ -316,6 +316,13 @@ struct Vehicle { void BeginLoading(); void LeaveStation(); + /** + * Handle the loading of the vehicle; when not it skips through dummy + * orders and does nothing in all other cases. + * @param mode is the non-first call for this vehicle in this tick? + */ + void HandleLoading(bool mode = false); + /** * An overriden version of new, so you can use the vehicle instance * instead of a newly allocated piece of memory. -- cgit v1.2.3-54-g00ecf