equal
deleted
inserted
replaced
10 void CcBuildShip(bool success, TileIndex tile, uint32 p1, uint32 p2); |
10 void CcBuildShip(bool success, TileIndex tile, uint32 p1, uint32 p2); |
11 void CcCloneShip(bool success, TileIndex tile, uint32 p1, uint32 p2); |
11 void CcCloneShip(bool success, TileIndex tile, uint32 p1, uint32 p2); |
12 void RecalcShipStuff(Vehicle *v); |
12 void RecalcShipStuff(Vehicle *v); |
13 void GetShipSpriteSize(EngineID engine, uint &width, uint &height); |
13 void GetShipSpriteSize(EngineID engine, uint &width, uint &height); |
14 |
14 |
15 static inline bool IsShipInDepot(const Vehicle* v) |
15 static inline bool IsShipInDepot(const Vehicle *v) |
16 { |
16 { |
17 assert(v->type == VEH_SHIP); |
17 assert(v->type == VEH_SHIP); |
18 return v->u.ship.state == 0x80; |
18 return v->u.ship.state == 0x80; |
19 } |
19 } |
20 |
20 |
21 static inline bool IsShipInDepotStopped(const Vehicle* v) |
21 static inline bool IsShipInDepotStopped(const Vehicle *v) |
22 { |
22 { |
23 return IsShipInDepot(v) && v->vehstatus & VS_STOPPED; |
23 return IsShipInDepot(v) && v->vehstatus & VS_STOPPED; |
24 } |
24 } |
25 |
25 |
26 |
26 |