From b0ac283aeca94df1af922bc3e02d456464486427 Mon Sep 17 00:00:00 2001 From: rubidium Date: Mon, 7 Jan 2008 00:57:19 +0000 Subject: (svn r11774) -Change: do not include variables.h in a header when it is not needed. --- src/order_cmd.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/order_cmd.cpp') diff --git a/src/order_cmd.cpp b/src/order_cmd.cpp index 08e751be8..da2d82460 100644 --- a/src/order_cmd.cpp +++ b/src/order_cmd.cpp @@ -21,6 +21,7 @@ #include "core/alloc_func.hpp" #include "functions.h" #include "window_func.h" +#include "settings_type.h" DEFINE_OLD_POOL_GENERIC(Order, Order) @@ -1251,6 +1252,11 @@ void DeleteVehicleOrders(Vehicle *v) } } +Date GetServiceIntervalClamped(uint index) +{ + return (_patches.servint_ispercent) ? Clamp(index, MIN_SERVINT_PERCENT, MAX_SERVINT_PERCENT) : Clamp(index, MIN_SERVINT_DAYS, MAX_SERVINT_DAYS); +} + /** * * Check if we share our orders with an other vehicle -- cgit v1.2.3-54-g00ecf