roadveh.h
author miham
Mon, 04 Dec 2006 04:22:53 +0000
changeset 5226 fce4834d4201
parent 4666 850b5b6e4bac
permissions -rw-r--r--
(svn r7346) WebTranslator2 update to 2006-12-04 05:22:02
american - 5 fixed by WhiteRabbit (5)
brazilian_portuguese - 1 fixed by tucalipe (1)
bulgarian - 5 fixed by groupsky (5)
catalan - 1 fixed, 3 changed by arnaullv (4)
croatian - 186 fixed, 111 changed by knovak (297)
czech - 5 fixed by Hadez (5)
dutch - 5 fixed by habell (5)
french - 1 fixed by glx (1)
german - 5 fixed by Neonox (5)
italian - 5 fixed by sidew (5)
portuguese - 4 fixed by izhirahider (4)
turkish - 5 fixed by jnmbk (5)
/* $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 CcCloneRoadVeh(bool success, TileIndex tile, uint32 p1, uint32 p2);

#endif /* ROADVEH_H */