Files
@ r5312:ffd375effb01
Branch filter:
Location: cpp/openttd-patchpack/source/roadveh.h - annotation
r5312:ffd375effb01
414 B
text/x-c
(svn r7468) -Codechange: [win32] Add some comments to MB/WIDE_TO_WIDE/MB_[BUFFER] macros and
use them some more in win32 code. Also for the clipboard use the convert_from_fs
function instead of calling Win32 API directly. Make the static buffers in OTTD2FS
and FS2OTTD the same size (character-length wise)
use them some more in win32 code. Also for the clipboard use the convert_from_fs
function instead of calling Win32 API directly. Make the static buffers in OTTD2FS
and FS2OTTD the same size (character-length wise)
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 */
|