From 41e2bd433cb552a1a20b9c1fa0a4128f699dd7c6 Mon Sep 17 00:00:00 2001 From: Wanne Date: Sun, 24 Feb 2008 18:04:50 +0000 Subject: [PATCH] - 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 --- JA2.suo | Bin 197632 -> 197632 bytes Tactical/Interface Items.cpp | 29 +++++++++++++++++++++-------- 2 files changed, 21 insertions(+), 8 deletions(-) diff --git a/JA2.suo b/JA2.suo index 7e5477636e1d83d5869e49ee02ab142136424348..fc00f21c2bd287d2b37e116744ce2a42f1566b4f 100644 GIT binary patch delta 6131 zcmaJ_4OA4@6@GVEb=74>SaBsASQH6GMKJ!wkQM)k5~TPOLUT++QDYPp5k2vb5;exC zvFH%4v4&D&)V7#o#G>J-p%$oBbgG?Kg8!#d`+7h(xo zjM9@+>`UoWxz?WCwT~4O%@NbY0Q?UN7ec=Bakm~qJhY>q4m@8JiUoKI@tp(IcMHS% z2vKcA|5Z@l7I|V3-cN+$F&XT+DwvD6JRrZUUex7WkhK?Hp9mWx7lxg+#`*w`VhWS* zIx>PO2DrtGR$bU_w`A!JEo8SdJ30z4ij|`Azb9HRw3sKDf<;FjHXf0m}qd}arhum^j{ZLw^ z_xX)sQYa_9Og8y(eK^h6De|m_NRG5gZtRObz$q7;9x9i&^pzh!Y+pU6@j{SIF=H1W zjgD^|#GykdLcZP*E-!1a(Gq=HKJ%CyazTTGj(dSO571z?6Qy!m72Xs{dBr&?vP>dJ z4Xxre>JGbl znBkBo`KXgZxw1Q$eZ(EiSDjSJi4(L59v!6+zTShv%lgs|e>g|>1EID_8-OF$m-G9R zoih`#teNn+*DM8zII{X;=*D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^WFALiz7CLXG|uMB$Q(Iw5lJ?}TszogJr(9fG(_@jkxk)6lo@RvNX>Z3iff-C9o) zIO|adRVM-hvHv0JP6hAaqDBN08=zH;48z95LgiVH2$5w+g-G+~I!G-IfjbD)UvNT4 zf)bctfURFZ2oCXrRRU2-P0C1W`%~&XpYTr@yXPc0Gdz|Al^Ux-$5Gyj@BfQVw%UHG zDypg(PVt6RbvsO7@{NLkZ+HP@a{R{N?60UWC&H`(8(Rdx$*%=~=?np!?VWmfmglML zyZ|H7evS%ryfPIi`nLdRIIjy_(v@!eR=4m-oPJRNti42lo~e|5M{cFwzJKE~1vy*4 zCow|GbXiQD<`|p0e#BjYW^pxZu8OOP$EqKVP$#b$q1vt+p*(LGq2m4{pu%oaytw{| zrf=JEbd19Fx5$U)&zzU>L?o=?xP|I@;?5n4;n}qvRXUNx}cYjL*MM z-RHEMfXlo*bv0;frx==Y#DRsp?c;1`_Bmv6a_Mq36g{1p11E=)59VkA|5}n+2t_tW zDPyJ@Q`9{ub!J6)EsVVuK7t$`!Lv4YC`$pPFrWonY;3ywV`bWy1i1M&1ell< z4f3g9Qt*=?mhCqC@s(FP?r>p~usn)+`Ns5*jVn*O=&Ib8by4oqrAMXwT;|hDj*_BY z-G9I&NqN*aeH3T`)e+KNbImp81ko_#664{uO3O?xO$EM)*Najv1HtD##6O(3Rc?7#sT1;_+ z?EBz}GsY6qrzh)5Hw?-!K>8Da4B1-&(y;OwI$FKq$GntLx{5V6R`T$5Mo+eNn>TCw EA7%=XNB{r; diff --git a/Tactical/Interface Items.cpp b/Tactical/Interface Items.cpp index 408f1def..7f4a7636 100644 --- a/Tactical/Interface Items.cpp +++ b/Tactical/Interface Items.cpp @@ -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.....