src/roadveh.h
author rubidium
Wed, 03 Jan 2007 08:55:13 +0000
branchcustombridgeheads
changeset 5644 ec96a5a38023
parent 5643 3778051e8095
child 6037 7409c8f581e1
permissions -rw-r--r--
(svn r7791) [cbh] -Fix (r7790): forgot to run projects/generate, so the MSVC project files were not in sync with sources.list.
/* $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 */