From 4725ce55f1c111e83c458c2ca793f674fad4f513 Mon Sep 17 00:00:00 2001 From: Shadooow Date: Wed, 30 Jun 2021 07:16:09 +0000 Subject: [PATCH] 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 --- Tactical/Turn Based Input.cpp | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/Tactical/Turn Based Input.cpp b/Tactical/Turn Based Input.cpp index 86b8bba4..db78610a 100644 --- a/Tactical/Turn Based Input.cpp +++ b/Tactical/Turn Based Input.cpp @@ -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;