Files @ r5925:1e63ba9b7c63
Branch filter:

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

miham
(svn r8562) -Update: WebTranslator2 update to 2007-02-03 19:51:53
brazilian_portuguese - 1 changed by fukumori (1)
croatian - 78 fixed, 1 changed by tperic (79)
german - 15 changed by Neonox (15)
portuguese - 4 fixed by izhirahider (4)
russian - 10 fixed by DarkFenX (10)
slovenian - 4 fixed by Necrolyte (4)
/* $Id$ */

#ifndef ROADVEH_H
#define ROADVEH_H

#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 CcBuildRoadVeh(bool success, TileIndex tile, uint32 p1, uint32 p2);
void CcCloneRoadVeh(bool success, TileIndex tile, uint32 p1, uint32 p2);

#endif /* ROADVEH_H */