author | tron |
Mon, 05 Jun 2006 11:28:31 +0000 | |
changeset 3962 | b53bf74fbcef |
parent 3961 | 9868b766fda7 |
child 3963 | 6cab57074a9a |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ship.h Mon Jun 05 11:28:31 2006 +0000 @@ -0,0 +1,15 @@ +/* $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; +}