فهرست منبع

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

Ivan Savenko 1 سال پیش
والد
کامیت
5df53f6ea2
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  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)
 	{