Files @ r4624:1a07a53b2696
Branch filter:

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

belugas
(svn r6484) -Undo (partly)r6289. If a grf writer wants a string been only a space, why should it be blocked?
It is the wrong test at the wrong place
/* $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;
}