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

void CcCloneRoadVeh(bool success, TileIndex tile, uint32 p1, uint32 p2);