CalcBestThrow: fixed bug ending throw search if one if the checked spots was too far for throw.

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8915 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Sevenfm
2020-11-01 16:44:37 +00:00
parent 191db0b2ac
commit bc7fe70fb7
+1 -1
View File
@@ -1403,7 +1403,7 @@ void CalcBestThrow(SOLDIERTYPE *pSoldier, ATTACKTYPE *pBestThrow)
if ( PythSpacesAway( pSoldier->sGridNo, sGridNo ) > iTossRange )
{
// can't throw there!
return;
continue;
}
// if considering a gas/smoke grenade, check to see if there is such stuff already there!