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

Fixed exchanging artifacts between heroes. Fixed def visibility issues. Refactored alphaTransform.

This commit is contained in:
Michał W. Urbańczyk
2009-07-27 12:29:10 +00:00
parent 898d266580
commit aad61c8ac8
3 changed files with 10 additions and 54 deletions

View File

@@ -2121,7 +2121,7 @@ bool CGameHandler::swapArtifacts( si32 hid1, si32 hid2, ui16 slot1, ui16 slot2 )
sha.hid = hid2;
sha.artifacts = h2->artifacts;
sha.artifWorn = h2->artifWorn;
sha.setArtAtPos(slot2,h1->getArtAtPos(slot1));
sha.setArtAtPos(slot2, a1 ? a1->id : -1);
sendAndApply(&sha);
}