ship.h
author rubidium
Sun, 10 Sep 2006 08:28:32 +0000
changeset 4587 47bdc67193da
parent 3962 c8e21d1c5a6c
child 4638 8abe4f10b94b
permissions -rw-r--r--
(svn r6437) -Fix: reset the location of the last sound as that location can be outside the map when you are loading another (smaller) map. Thanks to MeusH for noticing.
/* $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;
}