fixed cheat command CTRL+U not refilling vehicle fuel correctly

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@9121 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Shadooow
2021-06-30 07:16:09 +00:00
parent 6f24fb89fd
commit 4725ce55f1
+12 -4
View File
@@ -4344,10 +4344,18 @@ void GetKeyboardInput( UINT32 *puiNewEvent )
{
if ( pSoldier->bActive && pSoldier->stats.bLife > 0 )
{
// Get breath back
pSoldier->bBreath = pSoldier->bBreathMax;
pSoldier->sBreathRed = 0;
if (pSoldier->flags.uiStatusFlags & SOLDIER_VEHICLE)
{
// Get breath back
pSoldier->bBreath = 100;
pSoldier->sBreathRed = 10000;
}
else
{
// Get breath back
pSoldier->bBreath = pSoldier->bBreathMax;
pSoldier->sBreathRed = 0;
}
// Get life back
pSoldier->stats.bLife = pSoldier->stats.bLifeMax;
pSoldier->bBleeding = 0;