mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-22 22:13:35 +02:00
fix picture (regression)
This commit is contained in:
parent
7be44278d7
commit
ac12574f61
@ -54,8 +54,8 @@ void CreaturePurchaseCard::switchCreatureLevel()
|
||||
auto index = vstd::find_pos(upgradesID, creatureOnTheCard->getId());
|
||||
auto nextCreatureId = vstd::circularAt(upgradesID, ++index);
|
||||
creatureOnTheCard = nextCreatureId.toCreature();
|
||||
picture = std::make_shared<CCreaturePic>(parent->pos.x, parent->pos.y, creatureOnTheCard);
|
||||
creatureClickArea = std::make_shared<CCreatureClickArea>(Point(parent->pos.x, parent->pos.y), picture, creatureOnTheCard);
|
||||
picture = std::make_shared<CCreaturePic>(picture->pos.x - pos.x, picture->pos.y - pos.y, creatureOnTheCard);
|
||||
creatureClickArea = std::make_shared<CCreatureClickArea>(Point(picture->pos.x - pos.x, picture->pos.y - pos.y), picture, creatureOnTheCard);
|
||||
parent->updateAllSliders();
|
||||
cost->set(creatureOnTheCard->getFullRecruitCost() * slider->getValue());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user