mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
Fixes mouse wheel not working with knife cursor (by Shadooow).
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@9021 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -3754,7 +3754,7 @@ void HandleWheelAdjustCursor( SOLDIERTYPE *pSoldier, INT32 sMapPos, INT32 sDelta
|
||||
// Determine if we can afford!
|
||||
if ( EnoughPoints( pSoldier, sAPCosts, 0, FALSE ) )
|
||||
{
|
||||
pSoldier->aiData.bShownAimTime+= REFINE_KNIFE_2;
|
||||
pSoldier->aiData.bShownAimTime+= (sDelta*REFINE_KNIFE_2);
|
||||
if ( pSoldier->aiData.bShownAimTime > REFINE_KNIFE_2 )
|
||||
pSoldier->aiData.bShownAimTime = REFINE_KNIFE_2;
|
||||
gfDisplayFullCountRing = FALSE;
|
||||
@@ -3945,7 +3945,7 @@ void HandleWheelAdjustCursorWOAB( SOLDIERTYPE *pSoldier, INT32 sMapPos, INT32 sD
|
||||
// Determine if we can afford!
|
||||
if ( EnoughPoints( pSoldier, sAPCosts, 0, FALSE ) )
|
||||
{
|
||||
pSoldier->aiData.bShownAimTime+= REFINE_KNIFE_2;
|
||||
pSoldier->aiData.bShownAimTime+= (sDelta*REFINE_KNIFE_2);
|
||||
if ( pSoldier->aiData.bShownAimTime > REFINE_KNIFE_2 )
|
||||
pSoldier->aiData.bShownAimTime = REFINE_KNIFE_2;
|
||||
gfDisplayFullCountRing = FALSE;
|
||||
|
||||
Reference in New Issue
Block a user