From b729583bcb8e4ab272dfd0c597dcef96928c51df Mon Sep 17 00:00:00 2001 From: Sevenfm Date: Wed, 29 Apr 2020 06:15:36 +0000 Subject: [PATCH] Switch from alt weapon holding when changing stance in realtime. git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8795 3b4a5df2-a311-0410-b5c6-a8a6f20db521 --- Tactical/Handle UI.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Tactical/Handle UI.cpp b/Tactical/Handle UI.cpp index 283060d6..581d8fca 100644 --- a/Tactical/Handle UI.cpp +++ b/Tactical/Handle UI.cpp @@ -3868,9 +3868,14 @@ void UIHandleSoldierStanceChange( UINT8 ubSoldierID, INT8 bNewStance ) pSoldier->usDontUpdateNewGridNoOnMoveAnimChange = 1; } - pSoldier->ChangeSoldierState( pSoldier->usUIMovementMode, 0, FALSE ); + } + // sevenfm: switch from alt weapon holding when changing stance in realtime + if (pSoldier->bScopeMode == USE_ALT_WEAPON_HOLD && bNewStance != ANIM_STAND) + { + ChangeScopeMode(pSoldier, NOWHERE); + ManLooksForOtherTeams(pSoldier); } }