roadveh.h
author rubidium
Tue, 22 Aug 2006 14:38:37 +0000
changeset 4344 5d0e40cd67b9
parent 3959 e2bbaa8d4978
child 4653 091f530bae28
permissions -rw-r--r--
(svn r6045) -Cleanup: align all table-like structures using spaces, i.e. whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
/* $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;
}