소스 검색

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

Ivan Savenko 2 년 전
부모
커밋
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)
 	{