mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
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:
@@ -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 )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user