# HG changeset patch # User tron # Date 1149506911 0 # Node ID c8e21d1c5a6c4ab9367c3436f303cde46cc3ae91 # Parent e2783f244ac61c781544c18d8b27849f75d00bd3 (svn r5121) Add forgotten file in r5120 diff -r e2783f244ac6 -r c8e21d1c5a6c ship.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ship.h Mon Jun 05 11:28:31 2006 +0000 @@ -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; +}