(svn r11774) -Change: do not include variables.h in a header when it is not needed.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user