author | bjarni |
Thu, 28 Sep 2006 18:13:31 +0000 | |
changeset 4665 | d58f13102cc3 |
parent 4638 | 05955c6cb536 |
child 4666 | 172a0cdf28a6 |
permissions | -rw-r--r-- |
3962 | 1 |
/* $Id$ */ |
2 |
||
3 |
#include "vehicle.h" |
|
4 |
||
4638
05955c6cb536
(svn r6513) -Codechange: unified the code to draw depot windows
bjarni
parents:
3962
diff
changeset
|
5 |
void CcCloneShip(bool success, TileIndex tile, uint32 p1, uint32 p2); |
3962 | 6 |
|
7 |
static inline bool IsShipInDepot(const Vehicle* v) |
|
8 |
{ |
|
9 |
assert(v->type == VEH_Ship); |
|
10 |
return v->u.ship.state == 0x80; |
|
11 |
} |
|
12 |
||
13 |
static inline bool IsShipInDepotStopped(const Vehicle* v) |
|
14 |
{ |
|
15 |
return IsShipInDepot(v) && v->vehstatus & VS_STOPPED; |
|
16 |
} |