Files @ r3997:b132096ae102
Branch filter:

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

peter1138
(svn r5201) - NewGRF: add loading of default refit costs. This information is not yet used
/* $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;
}