roadveh.h
author tron
Wed, 28 Jun 2006 05:47:55 +0000
changeset 4079 30cac8061fa2
parent 3959 e2bbaa8d4978
child 4653 091f530bae28
permissions -rw-r--r--
(svn r5394) Allocate a small, fixed-size array on the stack instead of malloc()ing it
/* $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;
}