Files @ r3998:071ee4637db1
Branch filter:

Location: cpp/openttd-patchpack/source/roadveh.h

miham
(svn r5202) WebTranslator2 update to 2006-06-09 19:46:28
american - 4 fixed by WhiteRabbit (4)
dutch - 4 fixed by webfreakz (4)
turkish - 4 fixed, 4 changed by jnmbk (8)
ukrainian - 4 fixed by znikoz (4)
/* $Id$ */

#include "vehicle.h"


static inline bool IsRoadVehInDepot(const Vehicle* v)
{
	assert(v->type == VEH_Road);
	return v->u.road.state == 254;
}

static inline bool IsRoadVehInDepotStopped(const Vehicle* v)
{
	return IsRoadVehInDepot(v) && v->vehstatus & VS_STOPPED;
}