diff options
Diffstat (limited to 'src/vehicle_base.h')
-rw-r--r-- | src/vehicle_base.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/vehicle_base.h b/src/vehicle_base.h index e6fe20e17..b2b38791d 100644 --- a/src/vehicle_base.h +++ b/src/vehicle_base.h @@ -523,11 +523,14 @@ public: this->service_interval = src->service_interval; } + /** - * Handle all of the aspects of a vehicle breakdown. + * Handle all of the aspects of a vehicle breakdown * This includes adding smoke and sounds, and ending the breakdown when appropriate. + * @return true iff the vehicle is stopped because of a breakdown + * @note This function always returns false for aircraft, since these never stop for breakdowns */ - void HandleBreakdown(); + bool HandleBreakdown(); bool NeedsAutorenewing(const Company *c) const; |