From 5400775c825a716e2e1c072bbfe1bee8f8c538b1 Mon Sep 17 00:00:00 2001 From: Sevenfm Date: Fri, 30 Apr 2021 19:16:52 +0000 Subject: [PATCH] Fix for randomly shooting in wrong direction because the game activates spreading code by mistake (by Shadooow). git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8992 3b4a5df2-a311-0410-b5c6-a8a6f20db521 --- Tactical/Turn Based Input.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Tactical/Turn Based Input.cpp b/Tactical/Turn Based Input.cpp index 45a894f5..7d8327ce 100644 --- a/Tactical/Turn Based Input.cpp +++ b/Tactical/Turn Based Input.cpp @@ -774,7 +774,11 @@ void QueryTBLeftButton( UINT32 *puiNewEvent ) break; case CONFIRM_ACTION_MODE: - + if (GetSoldier(&pSoldier, gusSelectedSoldier)) + { + //shadooow: this fixes merc randomly shooting in different direction than assigned + pSoldier->flags.fDoSpread = 0; + } *puiNewEvent = CA_MERC_SHOOT; break;