Mercurial > hg > openttd
view src/roadveh.h @ 5800:9b2e11950b8f draft
(svn r8362) -Codechange: [vehicle build window] moved the engine drawing loop to a function of it's own
-Fix (r8335): [vehicle build window] ship sprites were moved two pixels to the left
author | bjarni <bjarni@openttd.org> |
---|---|
date | Mon, 22 Jan 2007 23:23:30 +0000 |
parents | d63183d407e9 |
children | 4a39d6291d58 |
line wrap: on
line source
/* $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 CcBuildRoadVeh(bool success, TileIndex tile, uint32 p1, uint32 p2); void CcCloneRoadVeh(bool success, TileIndex tile, uint32 p1, uint32 p2); #endif /* ROADVEH_H */