mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
Fix (by Sevenfm) - shooting upwards penalty calculation was wrong
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8631 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -11878,7 +11878,7 @@ FLOAT CalcNewChanceToHitBaseTargetBonus(SOLDIERTYPE *pSoldier, SOLDIERTYPE *pTar
|
||||
if (iRange > 0 && iHeightDifference > 0)
|
||||
{
|
||||
FLOAT fTempPenalty = gGameCTHConstants.BASE_SHOOTING_UPWARDS * iHeightDifference;
|
||||
fTempPenalty /= iRange;
|
||||
fTempPenalty = fTempPenalty * CELL_X_SIZE / iRange;
|
||||
|
||||
fBaseModifier += fTempPenalty;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user