summaryrefslogtreecommitdiff
path: root/depot.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2006-08-17 20:22:35 +0000
committerrubidium <rubidium@openttd.org>2006-08-17 20:22:35 +0000
commit7cfd3eb61834ee3d4c5037b0a3ffc71089b9564a (patch)
tree0e09fbecef792005a3c390649f7cf774c8c43325 /depot.h
parenta178d2600b02a2c3091d1e185f887d371f4a1feb (diff)
downloadopenttd-7cfd3eb61834ee3d4c5037b0a3ffc71089b9564a.tar.xz
(svn r5934) -Cleanup: forgot some conversions to Year and to Date
-Cleanup: use _cur_year instead of _date for some (year based) comparisons -Cleanup: remove a magic number in favour of another (less) magic number
Diffstat (limited to 'depot.h')
-rw-r--r--depot.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/depot.h b/depot.h
index 4947cfc9e..11065e0bf 100644
--- a/depot.h
+++ b/depot.h
@@ -53,7 +53,7 @@ static inline bool IsDepotIndex(uint index)
* within the given bounds. @see MIN_SERVINT_PERCENT ,etc.
* @param index proposed service interval
*/
-static inline uint16 GetServiceIntervalClamped(uint index)
+static inline Date GetServiceIntervalClamped(uint index)
{
return (_patches.servint_ispercent) ? clamp(index, MIN_SERVINT_PERCENT, MAX_SERVINT_PERCENT) : clamp(index, MIN_SERVINT_DAYS, MAX_SERVINT_DAYS);
}