roadveh.h
author tron
Tue, 25 Jul 2006 19:18:31 +0000
changeset 4170 1e4a024fd08b
parent 3959 e2bbaa8d4978
child 4653 091f530bae28
permissions -rw-r--r--
(svn r5607) -Regression [r3597]: Let a road vehicle only overtake if there is no vehicle close except the two involved
/* $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;
}