mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user