Files
@ r4912:d420151de4c6
Branch filter:
Location: cpp/openttd-patchpack/source/roadveh.h - annotation
r4912:d420151de4c6
414 B
text/x-c
(svn r6884) -Codechange: Add strict bounds checking in string formatting system.
The last parameter should point to the end of the buffer (eg lastof(buf))
Courtesy of Tron.
The last parameter should point to the end of the buffer (eg lastof(buf))
Courtesy of Tron.
r3959:cd4598f2b792 r3959:cd4598f2b792 r4666:2a2c50111c72 r4666:2a2c50111c72 r4666:2a2c50111c72 r3959:cd4598f2b792 r3959:cd4598f2b792 r3959:cd4598f2b792 r3959:cd4598f2b792 r3959:cd4598f2b792 r3959:cd4598f2b792 r3959:cd4598f2b792 r3959:cd4598f2b792 r3959:cd4598f2b792 r3959:cd4598f2b792 r3959:cd4598f2b792 r3959:cd4598f2b792 r3959:cd4598f2b792 r4653:3d461c3cd615 r4653:3d461c3cd615 r4666:2a2c50111c72 r4666:2a2c50111c72 | /* $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 */
|