roadveh.h
author miham
Sat, 09 Sep 2006 08:30:12 +0000
changeset 4584 281bb38d7b36
parent 3959 48f178431701
child 4653 9f72ab9dc4a7
permissions -rw-r--r--
(svn r6434) WebTranslator2 update to 2006-09-09 10:29:44
dutch - 8 fixed by habell (8)
german - 8 fixed by Neonox (8)
polish - 8 fixed by meush (8)
portuguese - 8 fixed by izhirahider (8)
/* $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;
}