diff options
author | tron <tron@openttd.org> | 2006-06-05 11:28:31 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-06-05 11:28:31 +0000 |
commit | 6d135c110002729acd0800fa4ffe6750a3132f27 (patch) | |
tree | 81d2954a32fa6ec6807b93b4e817106cb26ef99a | |
parent | ce9639c6bc8dd1b6a704ad2d4a9301c57a5d67db (diff) | |
download | openttd-6d135c110002729acd0800fa4ffe6750a3132f27.tar.xz |
(svn r5121) Add forgotten file in r5120
-rw-r--r-- | ship.h | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -0,0 +1,15 @@ +/* $Id$ */ + +#include "vehicle.h" + + +static inline bool IsShipInDepot(const Vehicle* v) +{ + assert(v->type == VEH_Ship); + return v->u.ship.state == 0x80; +} + +static inline bool IsShipInDepotStopped(const Vehicle* v) +{ + return IsShipInDepot(v) && v->vehstatus & VS_STOPPED; +} |