From 0f4aea25749b9e18d377a2018a491733ccfc8f88 Mon Sep 17 00:00:00 2001 From: Sevenfm Date: Sat, 7 May 2022 18:37:27 +0000 Subject: [PATCH] Experimental fix: use WALKING movement mode when sidestepping with weapon raised in turnbased mode. git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@9381 3b4a5df2-a311-0410-b5c6-a8a6f20db521 --- Tactical/Soldier Control.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Tactical/Soldier Control.cpp b/Tactical/Soldier Control.cpp index 598e1080..e3fe1d3a 100644 --- a/Tactical/Soldier Control.cpp +++ b/Tactical/Soldier Control.cpp @@ -7241,6 +7241,10 @@ BOOLEAN SOLDIERTYPE::EVENT_InternalGetNewSoldierPath( INT32 sDestGridNo, UINT16 this->StopCoweringAnimation(); } + // sevenfm: set WALKING when sidestepping, this should fix running instead of sidestepping with weapon raised in turnbased mode + if (usMoveAnimState == RUNNING && this->bReverse) + usMoveAnimState = WALKING; + this->bGoodContPath = FALSE; if ( this->flags.fDelayedMovement )