summaryrefslogtreecommitdiff
path: root/roadveh.h
blob: 9d5800e6da6f02ce593c02a4d6621f1da3e04333 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* $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;
}