mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
- print interrogation progress as float number
- spy selftest in pointless without disguise - inventory explosion creates a sound git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6192 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+7
-2
@@ -1625,6 +1625,7 @@ void HandleRenderFaceAdjustments( FACETYPE *pFace, BOOLEAN fDisplayBuffer, BOOLE
|
||||
BOOLEAN fDoIcon = FALSE;
|
||||
UINT32 uiRenderBuffer;
|
||||
INT16 sPtsAvailable = 0;
|
||||
FLOAT bPtsAvailable = 0.0; // Flugente: sometimes, we want to display float values...
|
||||
UINT16 usMaximumPts = 0;
|
||||
CHAR16 sString[ 32 ];
|
||||
UINT16 usTextWidth;
|
||||
@@ -2415,7 +2416,8 @@ void HandleRenderFaceAdjustments( FACETYPE *pFace, BOOLEAN fDisplayBuffer, BOOLE
|
||||
case FACILITY_INTERROGATE_PRISONERS:
|
||||
sIconIndex = 23;
|
||||
fDoIcon = TRUE;
|
||||
sPtsAvailable = (INT16)( CalculateInterrogationValue(pSoldier, &usMaximumPts )/100 );
|
||||
//sPtsAvailable = (INT16)( CalculateInterrogationValue(pSoldier, &usMaximumPts )/100 );
|
||||
bPtsAvailable = (FLOAT)( CalculateInterrogationValue(pSoldier, &usMaximumPts )/100.0 );
|
||||
fShowNumber = TRUE;
|
||||
fShowMaximum = TRUE;
|
||||
break;
|
||||
@@ -2450,7 +2452,10 @@ void HandleRenderFaceAdjustments( FACETYPE *pFace, BOOLEAN fDisplayBuffer, BOOLE
|
||||
|
||||
if ( fShowMaximum )
|
||||
{
|
||||
swprintf( sString, L"%d/%d", sPtsAvailable, usMaximumPts );
|
||||
if ( pSoldier->bAssignment == FACILITY_INTERROGATE_PRISONERS )
|
||||
swprintf( sString, L"%2.2f/%d", bPtsAvailable, usMaximumPts );
|
||||
else
|
||||
swprintf( sString, L"%d/%d", sPtsAvailable, usMaximumPts );
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user