mirror of
https://github.com/1dot13/source.git
synced 2026-08-26 14:30:26 +02:00
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:
@@ -1403,7 +1403,7 @@ void CalcBestThrow(SOLDIERTYPE *pSoldier, ATTACKTYPE *pBestThrow)
|
|||||||
if ( PythSpacesAway( pSoldier->sGridNo, sGridNo ) > iTossRange )
|
if ( PythSpacesAway( pSoldier->sGridNo, sGridNo ) > iTossRange )
|
||||||
{
|
{
|
||||||
// can't throw there!
|
// can't throw there!
|
||||||
return;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
// if considering a gas/smoke grenade, check to see if there is such stuff already there!
|
// if considering a gas/smoke grenade, check to see if there is such stuff already there!
|
||||||
|
|||||||
Reference in New Issue
Block a user