(svn r5839) Fix : A ship in a depot must be stopped before allowed to be cloned.
authorbelugas
Fri, 11 Aug 2006 03:07:46 +0000
changeset 4248 5dc4cb2f45b0
parent 4247 00cdac3de8e9
child 4249 9eedb1473740
(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...
ship_gui.c
--- a/ship_gui.c	Thu Aug 10 17:28:13 2006 +0000
+++ b/ship_gui.c	Fri Aug 11 03:07:46 2006 +0000
@@ -559,7 +559,7 @@
 		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;