mirror of https://github.com/OpenTTD/OpenTTD.git
(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...
This commit is contained in:
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…
Reference in New Issue