src/depot.h
changeset 6125 a6fff965707c
parent 5475 2e6990a8c7c4
child 6134 871305fd9ab7
equal deleted inserted replaced
6124:9f822ae6c086 6125:a6fff965707c
     1 /* $Id$ */
     1 /* $Id$ */
       
     2 
       
     3 /** @file depot.h Header files for depots (not hangars) */
     2 
     4 
     3 #ifndef DEPOT_H
     5 #ifndef DEPOT_H
     4 #define DEPOT_H
     6 #define DEPOT_H
     5 
       
     6 /** @file depot.h Header files for depots (not hangars)
       
     7  *  @see depot.c */
       
     8 
     7 
     9 #include "direction.h"
     8 #include "direction.h"
    10 #include "oldpool.h"
     9 #include "oldpool.h"
    11 #include "tile.h"
    10 #include "tile.h"
    12 #include "variables.h"
    11 #include "variables.h"
    53 /**
    52 /**
    54  * Get the service interval domain.
    53  * Get the service interval domain.
    55  * Get the new proposed service interval for the vehicle is indeed, clamped
    54  * Get the new proposed service interval for the vehicle is indeed, clamped
    56  * within the given bounds. @see MIN_SERVINT_PERCENT ,etc.
    55  * within the given bounds. @see MIN_SERVINT_PERCENT ,etc.
    57  * @param index proposed service interval
    56  * @param index proposed service interval
       
    57  * @return service interval
    58  */
    58  */
    59 static inline Date GetServiceIntervalClamped(uint index)
    59 static inline Date GetServiceIntervalClamped(uint index)
    60 {
    60 {
    61 	return (_patches.servint_ispercent) ? clamp(index, MIN_SERVINT_PERCENT, MAX_SERVINT_PERCENT) : clamp(index, MIN_SERVINT_DAYS, MAX_SERVINT_DAYS);
    61 	return (_patches.servint_ispercent) ? clamp(index, MIN_SERVINT_PERCENT, MAX_SERVINT_PERCENT) : clamp(index, MIN_SERVINT_DAYS, MAX_SERVINT_DAYS);
    62 }
    62 }