- Bugfix: Cap total tunnelvision bonus at 100 to avoid too high values effectively canceling each other (by DepressivesBrot)

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@5216 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Wanne
2012-04-19 07:46:23 +00:00
parent c6bc250632
commit ee2196ebb4
+4 -4
View File
@@ -10668,10 +10668,10 @@ UINT8 GetPercentTunnelVision( SOLDIERTYPE * pSoldier )
}
}
if ( PTR_OURTEAM ) // Madd: adjust tunnel vision by difficulty level
return( bonus );
else
return bonus / gGameOptions.ubDifficultyLevel;
if ( !PTR_OURTEAM ) // Madd: adjust tunnel vision by difficulty level
bonus /= gGameOptions.ubDifficultyLevel;
return __min(100, bonus);
}