ship.h
author miham
Tue, 04 Jul 2006 18:59:44 +0000
changeset 4115 b161c44a62c9
parent 3962 c8e21d1c5a6c
child 4638 8abe4f10b94b
permissions -rw-r--r--
(svn r5459) [Translations] Changed: finnish (siirtaa -> poistaa [patch from hapo])
/* $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;
}