ship.h
author Darkvater
Sat, 12 Aug 2006 12:22:38 +0000
branch0.4
changeset 10074 cae7dc5c5dfe
child 4638 8abe4f10b94b
permissions -rw-r--r--
(svn r5861) - Backport from trunk (r5839):
A ship in a depot must be stopped before allowed to be cloned (copied ship.h from trunk).
/* $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;
}