1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-27 22:49:25 +02:00

Minor changes (visitdir organization)

This commit is contained in:
Michał W. Urbańczyk
2009-07-19 22:16:07 +00:00
parent 1916ba6e9f
commit 3a1e252895
4 changed files with 8 additions and 10 deletions

View File

@@ -1951,7 +1951,7 @@ bool CGameHandler::garrisonSwap( si32 tid )
bool CGameHandler::swapArtifacts( si32 hid1, si32 hid2, ui16 slot1, ui16 slot2 )
{
CGHeroInstance *h1 = gs->getHero(hid1), *h2 = gs->getHero(hid2);
if((distance(h1->pos,h2->pos) > 1.0) || (h1->tempOwner != h2->tempOwner))
if((distance(h1->pos,h2->pos) > 1.5) || (h1->tempOwner != h2->tempOwner))
return false;
const CArtifact *a1 = h1->getArt(slot1),