diff options
author | rubidium <rubidium@openttd.org> | 2007-05-07 16:21:34 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-05-07 16:21:34 +0000 |
commit | a84ca16dc4f2c9d84bd5c7ae1c69ff7c321b067e (patch) | |
tree | 7d799b24ea0e76722a37e235c563ee818db1da54 /src/vehicle.h | |
parent | 2813b4440baec0866b243b83c45211b8b1fd3dec (diff) | |
download | openttd-a84ca16dc4f2c9d84bd5c7ae1c69ff7c321b067e.tar.xz |
(svn r9808) -Codechange: unify the Handle<VehicleType>Loading functions.
Diffstat (limited to 'src/vehicle.h')
-rw-r--r-- | src/vehicle.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/vehicle.h b/src/vehicle.h index 37bff24ca..6fe8f5521 100644 --- a/src/vehicle.h +++ b/src/vehicle.h @@ -317,6 +317,13 @@ struct Vehicle { 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. * @param size the size of the variable (unused) |