ship.h
author glx
Wed, 30 Aug 2006 20:08:58 +0000
changeset 4461 e46bbe947a06
parent 3962 c8e21d1c5a6c
child 4638 8abe4f10b94b
permissions -rw-r--r--
(svn r6244) -Fix: allow any order for strgen parameters
/* $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;
}