(svn r5839) Fix : A ship in a depot must be stopped before allowed to be cloned.

As this is standard behaviour for all other vehicle types...
replace/41b28d7194a279bdc17475d4fbe2ea6ec885a466
belugas 18 years ago
parent 581476b7d2
commit 811e79ba4c

@ -559,7 +559,7 @@ static void ShipViewWndProc(Window *w, WindowEvent *e)
case WE_MOUSELOOP:
{
const Vehicle *v = GetVehicle(w->window_number);
uint32 h = IsShipInDepot(v) ? 1 << 7 : 1 << 11;
uint32 h = IsShipInDepotStopped(v) ? 1 << 7 : 1 << 11;
if (h != w->hidden_state) {
w->hidden_state = h;

Loading…
Cancel
Save