mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-08 01:10:28 +00:00
16 lines
271 B
C
16 lines
271 B
C
|
/* $Id$ */
|
||
|
|
||
|
#include "vehicle.h"
|
||
|
|
||
|
|
||
|
static inline bool IsShipInDepot(const Vehicle* v)
|
||
|
{
|
||
|
assert(v->type == VEH_Ship);
|
||
|
return v->u.ship.state == 0x80;
|
||
|
}
|
||
|
|
||
|
static inline bool IsShipInDepotStopped(const Vehicle* v)
|
||
|
{
|
||
|
return IsShipInDepot(v) && v->vehstatus & VS_STOPPED;
|
||
|
}
|