Files @ r4042:f0f940a0d57a
Branch filter:

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

miham
(svn r5310) WebTranslator2 update to 2006-06-18 21:00:21
afrikaans - 116 fixed, 2 changed by TrueTenacity (118)
portuguese - 13 fixed by supra90 (13)
/* $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;
}