Procházet zdrojové kódy

Hota compatibility fix - allow stack selection border to have different
size than creature icon

Ivan Savenko před 1 rokem
rodič
revize
5df53f6ea2
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  1. 1 0
      client/widgets/CGarrisonInt.cpp

+ 1 - 0
client/widgets/CGarrisonInt.cpp

@@ -432,6 +432,7 @@ CGarrisonSlot::CGarrisonSlot(CGarrisonInt * Owner, int x, int y, SlotID IID, EGa
 
 	selectionImage = std::make_shared<CAnimImage>(graphics->getAnimation(imgName), 1);
 	selectionImage->disable();
+	selectionImage->center(creatureImage->pos.center());
 
 	if(Owner->smallIcons)
 	{