(svn r11774) -Change: do not include variables.h in a header when it is not needed.

This commit is contained in:
rubidium
2008-01-07 00:57:19 +00:00
parent 64fc2ade9e
commit b0ac283aec
33 changed files with 56 additions and 23 deletions

View File

@@ -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