1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-05-29 22:57:49 +02:00

Graphical glitches fixed

This commit is contained in:
SoundSSGood 2023-04-01 16:15:10 +03:00
parent cfb5a771ca
commit 348684f93e

View File

@ -281,7 +281,6 @@ void CHeroArtPlace::select()
}
}
CCS->curh->dragAndDropCursor("artifact", ourArt->artType->getIconIndex());
ourOwner->commonInfo->src.setTo(this, false);
ourOwner->commonInfo->src.slotID = ArtifactPosition::TRANSITION_POS;
@ -741,7 +740,9 @@ void CArtifactsOfHero::artifactMoved(const ArtifactLocation & src, const Artifac
}
if(!curHero->artifactsTransitionPos.empty() && withUIUpdate)
{
markPossibleSlots(curHero->getArt(ArtifactPosition::TRANSITION_POS));
auto artInst = curHero->getArt(ArtifactPosition::TRANSITION_POS);
markPossibleSlots(artInst);
CCS->curh->dragAndDropCursor("artifact", artInst->artType->getIconIndex());
}
}