Просмотр исходного кода

fixed slow loading of map selection window

Ivan Savenko 12 лет назад
Родитель
Сommit
96cc1b0e75
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      client/CPreGame.cpp

+ 2 - 1
client/CPreGame.cpp

@@ -1906,6 +1906,7 @@ InfoCard::InfoCard( bool Network )
 	difficulty(nullptr), sizes(nullptr), sFlags(nullptr)
 {
 	OBJ_CONSTRUCTION_CAPTURING_ALL;
+	CIntObject::type |= REDRAW_PARENT;
 	pos.x += 393;
 	pos.y += 6;
 	addUsedEvents(RCLICK);
@@ -2135,7 +2136,7 @@ void InfoCard::changeSelection( const CMapInfo *to )
 			difficulty->select(SEL->sInfo.difficulty, 0);
 		}
 	}
-	GH.totalRedraw();
+	redraw();
 }
 
 void InfoCard::clickRight( tribool down, bool previousState )