1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-13 19:54:17 +02:00

Merge pull request #1830 from SoundSSGood/beta

Graphical glitches fixed
This commit is contained in:
Ivan Savenko
2023-04-01 23:14:13 +03:00
committed by GitHub

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());
}
}