mirror of https://github.com/OpenTTD/OpenTTD
(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...release/0.5
parent
581476b7d2
commit
811e79ba4c
|
@ -559,7 +559,7 @@ static void ShipViewWndProc(Window *w, WindowEvent *e)
|
||||||
case WE_MOUSELOOP:
|
case WE_MOUSELOOP:
|
||||||
{
|
{
|
||||||
const Vehicle *v = GetVehicle(w->window_number);
|
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) {
|
if (h != w->hidden_state) {
|
||||||
w->hidden_state = h;
|
w->hidden_state = h;
|
||||||
|
|
Loading…
Reference in New Issue