Files @ r4564:8ea999af52d4
Branch filter:

Location: cpp/openttd-patchpack/source/roadveh.h

glx
(svn r6412) -Fix(r6411): forgot to remove some lines in openttd*.sln (thx michi_cc)
/* $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;
}