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
This commit is contained in:
Sevenfm
2021-04-30 19:16:52 +00:00
parent f611cec057
commit 5400775c82
+5 -1
View File
@@ -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;