summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2006-08-11 03:07:46 +0000
committerbelugas <belugas@openttd.org>2006-08-11 03:07:46 +0000
commit811e79ba4c8f53f6db73eaabecbd221488762cb8 (patch)
tree3f87154e1adffbd7320f3edbc4a7596c7521ff3b
parent581476b7d2bb6713f10e160eb7c0b6365f71554a (diff)
downloadopenttd-811e79ba4c8f53f6db73eaabecbd221488762cb8.tar.xz
(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...
-rw-r--r--ship_gui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ship_gui.c b/ship_gui.c
index 69b53fd38..a3b4ac3d3 100644
--- a/ship_gui.c
+++ b/ship_gui.c
@@ -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;