Pārlūkot izejas kodu

infobar: fix tiny rendering

Konstantin 2 gadi atpakaļ
vecāks
revīzija
4ab9cdd75a
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      client/adventureMap/CInfoBar.cpp

+ 2 - 2
client/adventureMap/CInfoBar.cpp

@@ -401,11 +401,11 @@ void CInfoBar::prepareComponents(const std::vector<Component> & components, std:
 	// Order matters - priority form should be chosen first
 	if(imageH + textH < CInfoBar::data_height)
 		pushComponents(components, message, textH, false, timer);
-	else if(!imageH && tinyH < CInfoBar::data_height)
+	else if(imageH + tinyH < CInfoBar::data_height)
 		pushComponents(components, message, tinyH, true, timer);
 	else if(imageH + headerH < CInfoBar::data_height)
 		pushComponents(components, header, headerH, false, timer);
-	else if(imageH + headerTinyH < CInfoBar::data_height - 2 * CInfoBar::offset)
+	else if(imageH + headerTinyH < CInfoBar::data_height)
 		pushComponents(components, header, headerTinyH, true, timer);
 	else
 		pushComponents(components, "", 0, false, timer);