roadveh.h
author miham
Tue, 19 Sep 2006 14:09:59 +0000
changeset 4622 ea9b50e45f06
parent 3959 48f178431701
child 4653 9f72ab9dc4a7
permissions -rw-r--r--
(svn r6480) WebTranslator2 update to 2006-09-19 16:09:27
brazilian_portuguese - 13 fixed by fukumori (13)
german - 1 changed by Neonox (1)
polish - 4 fixed by meush (4)
portuguese - 22 fixed by supra90 (22)
/* $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;
}