Files @ r6395:cb11d86befed
Branch filter:

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

miham
(svn r9525) -Update: WebTranslator2 update to 2007-03-29 19:56:13
estonian - 3 fixed, 4 changed by kristjans (7)
finnish - 2 fixed by pallokala (2)
italian - 1 changed by lorenzodv (1)
traditional_chinese - 1 changed by xbddc (1)
turkish - 12 fixed by jnmbk (12)
/* $Id$ */

/** @file roadveh.h */

#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 */