roadveh.h
author miham
Sun, 18 Jun 2006 19:00:39 +0000
changeset 4042 a1c42a402d8e
parent 3959 e2bbaa8d4978
child 4653 091f530bae28
permissions -rw-r--r--
(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;
}