mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-23 00:28:08 +02:00
Replaced most of accesses to CGObjectInstance::pos with anchorPoint()
This commit is contained in:
@ -368,7 +368,7 @@ void CGameStateCampaign::replaceHeroesPlaceholders()
|
||||
heroToPlace->id = campaignHeroReplacement.heroPlaceholderId;
|
||||
if(heroPlaceholder->tempOwner.isValidPlayer())
|
||||
heroToPlace->tempOwner = heroPlaceholder->tempOwner;
|
||||
heroToPlace->pos = heroPlaceholder->pos;
|
||||
heroToPlace->setAnchorPos(heroPlaceholder->anchorPos());
|
||||
heroToPlace->type = heroToPlace->getHeroType().toHeroType();
|
||||
heroToPlace->appearance = VLC->objtypeh->getHandlerFor(Obj::HERO, heroToPlace->type->heroClass->getIndex())->getTemplates().front();
|
||||
|
||||
@ -655,7 +655,7 @@ void CGameStateCampaign::initTowns()
|
||||
if (!owner->human)
|
||||
continue;
|
||||
|
||||
if (town->pos != pi.posOfMainTown)
|
||||
if (town->anchorPos() != pi.posOfMainTown)
|
||||
continue;
|
||||
|
||||
BuildingID newBuilding;
|
||||
|
Reference in New Issue
Block a user