Explorar o código

Merge pull request #5915 from Laserlicht/queue

fix glitch with small queue
Ivan Savenko hai 3 meses
pai
achega
8fbf9568d9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      client/battle/BattleWindow.cpp

+ 1 - 1
client/battle/BattleWindow.cpp

@@ -850,7 +850,7 @@ void BattleWindow::showAll(Canvas & to)
 	CIntObject::showAll(to);
 
 	if (ENGINE->screenDimensions().x != 800 || ENGINE->screenDimensions().y !=600)
-		to.drawBorder(Rect(pos.x-1, pos.y, pos.w+2, pos.h+1), Colors::BRIGHT_YELLOW);
+		to.drawBorder(Rect(pos.x-1, pos.y - (queue && queue->embedded ? 1 : 0), pos.w+2, pos.h+1 + (queue && queue->embedded ? 1 : 0)), Colors::BRIGHT_YELLOW);
 }
 
 void BattleWindow::show(Canvas & to)