Fixed bug that resets melee attack aim location if the attack was stopped in interrupt.

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@9059 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Shadooow
2021-06-01 15:21:56 +00:00
parent 9ea0968001
commit fe9dd67edc
4 changed files with 20 additions and 14 deletions
+4
View File
@@ -1662,6 +1662,8 @@ UINT8 HandleKnifeCursor( SOLDIERTYPE *pSoldier, INT32 sGridNo, BOOLEAN fActivate
if ( fActivated )
{
DetermineCursorBodyLocation( pSoldier->ubID, TRUE, TRUE );
//shadooow: this fixes bug where the original aim location is lost if the attack is stopped due to interrupt
pSoldier->bAimMeleeLocation = pSoldier->bAimShotLocation;
if ( gfUIHandleShowMoveGrid )
{
@@ -1793,6 +1795,8 @@ UINT8 HandlePunchCursor( SOLDIERTYPE *pSoldier, INT32 sGridNo, BOOLEAN fActivate
if ( fActivated )
{
DetermineCursorBodyLocation( pSoldier->ubID, TRUE, TRUE );
//shadooow: this fixes bug where the original aim location is lost if the attack is stopped due to interrupt
pSoldier->bAimMeleeLocation = pSoldier->bAimShotLocation;
if ( gfUIHandleShowMoveGrid )
{