DrawItemUIBarEx: use GetGunOverheatDisplayPercentage so that OVERHEATING_DISPLAY_JAMPERCENTAGE option can have effect.

Minor code improvements.

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8797 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Sevenfm
2020-05-05 16:34:15 +00:00
parent 7f8fc44a7d
commit 03d7fd5266
3 changed files with 48 additions and 51 deletions
+3 -1
View File
@@ -405,7 +405,9 @@ void DrawItemUIBarEx( OBJECTTYPE *pObject, UINT8 ubStatus, INT16 sXPos, INT16 sY
}
else
{
sValue = (INT16) (100 * GetGunOverheatJamPercentage( pObject) );
// sevenfm: use GetGunOverheatDisplayPercentage so that OVERHEATING_DISPLAY_JAMPERCENTAGE option can have effect
//sValue = (INT16)(100 * GetGunOverheatJamPercentage(pObject));
sValue = (INT16)(100 * GetGunOverheatDisplayPercentage(pObject));
// if temperature is 0 or below, do not display anything
if ( sValue < 1)