ship_gui.c
changeset 4248 5dc4cb2f45b0
parent 4243 900826bcac92
child 4261 2ec8f5a9747b
equal deleted inserted replaced
4247:00cdac3de8e9 4248:5dc4cb2f45b0
   557 			break;
   557 			break;
   558 
   558 
   559 		case WE_MOUSELOOP:
   559 		case WE_MOUSELOOP:
   560 		{
   560 		{
   561 			const Vehicle *v = GetVehicle(w->window_number);
   561 			const Vehicle *v = GetVehicle(w->window_number);
   562 			uint32 h = IsShipInDepot(v) ? 1 << 7 : 1 << 11;
   562 			uint32 h = IsShipInDepotStopped(v) ? 1 << 7 : 1 << 11;
   563 
   563 
   564 			if (h != w->hidden_state) {
   564 			if (h != w->hidden_state) {
   565 				w->hidden_state = h;
   565 				w->hidden_state = h;
   566 				SetWindowDirty(w);
   566 				SetWindowDirty(w);
   567 			}
   567 			}