diff options
author | yexo <yexo@openttd.org> | 2009-05-26 21:59:49 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2009-05-26 21:59:49 +0000 |
commit | 0d56cfabfa6b6553f02a701d3ec3d92cc7067b63 (patch) | |
tree | cbedc97360c42339860d6b03483900a203cf2ec3 /src/order_func.h | |
parent | aa62ec0a1f7cc2416e0397eeccc90156d27b8b44 (diff) | |
download | openttd-0d56cfabfa6b6553f02a701d3ec3d92cc7067b63.tar.xz |
(svn r16439) -Change: Make the default vehicle servicing settings company-based settings, so in a multiplayer game everyone can change them.
Diffstat (limited to 'src/order_func.h')
-rw-r--r-- | src/order_func.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/order_func.h b/src/order_func.h index 62a33f089..c8dffe1a3 100644 --- a/src/order_func.h +++ b/src/order_func.h @@ -47,12 +47,12 @@ void DrawOrderString(const Vehicle *v, const Order *order, int order_index, int #define MAX_SERVINT_DAYS 800 /** - * Get the service interval domain. - * Get the new proposed service interval for the vehicle is indeed, clamped - * within the given bounds. @see MIN_SERVINT_PERCENT ,etc. - * @param index proposed service interval - * @return service interval + * Clamp the service interval to the correct min/max. The actual min/max values + * depend on whether it's in percent or days. + * @param interval proposed service interval + * @param company_id the owner of the vehicle + * @return Clamped service interval */ -Date GetServiceIntervalClamped(uint index); +uint16 GetServiceIntervalClamped(uint interval, CompanyID company_id); #endif /* ORDER_FUNC_H */ |