- bugfix: item duplication bug:

You need two mercenaries. You place required item to first mercenary's inventory, 
then you take the item and point cursor with the item at the second mercenary. 
Then you click right mouse button and then left one. 
During the process of giving the item from the first mercenary to the second quickly move the item to the another slot of the inventory. 
As a result of it the item will be given to the second mercenary and the first mercenary will still have it.


git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@1835 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Wanne
2008-02-24 18:04:50 +00:00
parent 72b9a847dd
commit 41e2bd433c
2 changed files with 21 additions and 8 deletions
BIN
View File
Binary file not shown.
+21 -8
View File
@@ -4543,11 +4543,18 @@ void DrawItemTileCursor( )
}
// WANNE: Prevent duplication of items cheat-bug:
// You need two mercenaries. You place required item to first mercenary's inventory,
// then you take the item and point cursor with the item at the second mercenary.
// Then you click right mouse button and then left one.
// During the process of giving the item from the first mercenary to the second quicly move the item to the another slot of the inventory.
// As a result of it the item will be given to the second mercenary and the first mercenary will still have it.
// OK, if different than default, change....
if ( gfItemPointerDifferentThanDefault )
{
fGiveItem = !fGiveItem;
}
//if ( gfItemPointerDifferentThanDefault )
//{
// fGiveItem = !fGiveItem;
//}
// Get recalc and cursor flags
@@ -4879,11 +4886,17 @@ BOOLEAN HandleItemPointerClick( UINT16 usMapPos )
fGiveItem = TRUE;
}
// WANNE: Prevent duplication of items cheat-bug:
// You need two mercenaries. You place required item to first mercenary's inventory,
// then you take the item and point cursor with the item at the second mercenary.
// Then you click right mouse button and then left one.
// During the process of giving the item from the first mercenary to the second quicly move the item to the another slot of the inventory.
// As a result of it the item will be given to the second mercenary and the first mercenary will still have it.
// OK, if different than default, change....
if ( gfItemPointerDifferentThanDefault )
{
fGiveItem = !fGiveItem;
}
//if ( gfItemPointerDifferentThanDefault )
//{
// fGiveItem = !fGiveItem;
//}
// Get Pyth spaces away.....