roadveh_gui.c
changeset 3960 67dadc46ca74
parent 3959 48f178431701
child 3990 a317e665fb77
equal deleted inserted replaced
3959:48f178431701 3960:67dadc46ca74
   328 	case WE_MOUSELOOP:
   328 	case WE_MOUSELOOP:
   329 		{
   329 		{
   330 			Vehicle *v;
   330 			Vehicle *v;
   331 			uint32 h;
   331 			uint32 h;
   332 			v = GetVehicle(w->window_number);
   332 			v = GetVehicle(w->window_number);
   333 			h = IsTileDepotType(v->tile, TRANSPORT_ROAD) && (v->vehstatus&VS_STOPPED) ? (1<< 7) : (1 << 11);
   333 			h = IsRoadVehInDepotStopped(v) ? 1 << 7 : 1 << 11;
   334 			if (h != w->hidden_state) {
   334 			if (h != w->hidden_state) {
   335 				w->hidden_state = h;
   335 				w->hidden_state = h;
   336 				SetWindowDirty(w);
   336 				SetWindowDirty(w);
   337 			}
   337 			}
   338 		}
   338 		}