Files @ r4682:f3c270aa98d4
Branch filter:

Location: cpp/openttd-patchpack/source/ship.h

miham
(svn r6587) WebTranslator2 update to 2006-09-30 17:59:21
brazilian_portuguese - 44 fixed by tucalipe (44)
czech - 3 changed by Hadez (3)
hungarian - 8 fixed by miham (8)
polish - 8 fixed, 4 changed by meush (12)
swedish - 8 fixed by cjw (8)
/* $Id$ */

#ifndef SHIP_H
#define SHIP_H

#include "vehicle.h"

void CcCloneShip(bool success, TileIndex tile, uint32 p1, uint32 p2);

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;
}

#endif /* SHIP_H */