浏览代码

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)
 	{