roadveh.h
author miham
Wed, 12 Jul 2006 17:20:59 +0000
changeset 4131 b3e608d7a838
parent 3959 48f178431701
child 4653 9f72ab9dc4a7
permissions -rw-r--r--
(svn r5485) WebTranslator2 update to 2006-07-12 19:20:40
brazilian_portuguese - 4 changed by tucalipe (4)
spanish - 1 fixed by eusebio (1)
turkish - 1 fixed by jnmbk (1)
/* $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;
}