mirror of
https://github.com/1dot13/source.git
synced 2026-09-16 14:47:17 +02:00
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:
@@ -4344,10 +4344,18 @@ void GetKeyboardInput( UINT32 *puiNewEvent )
|
|||||||
{
|
{
|
||||||
if ( pSoldier->bActive && pSoldier->stats.bLife > 0 )
|
if ( pSoldier->bActive && pSoldier->stats.bLife > 0 )
|
||||||
{
|
{
|
||||||
// Get breath back
|
if (pSoldier->flags.uiStatusFlags & SOLDIER_VEHICLE)
|
||||||
pSoldier->bBreath = pSoldier->bBreathMax;
|
{
|
||||||
pSoldier->sBreathRed = 0;
|
// Get breath back
|
||||||
|
pSoldier->bBreath = 100;
|
||||||
|
pSoldier->sBreathRed = 10000;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// Get breath back
|
||||||
|
pSoldier->bBreath = pSoldier->bBreathMax;
|
||||||
|
pSoldier->sBreathRed = 0;
|
||||||
|
}
|
||||||
// Get life back
|
// Get life back
|
||||||
pSoldier->stats.bLife = pSoldier->stats.bLifeMax;
|
pSoldier->stats.bLife = pSoldier->stats.bLifeMax;
|
||||||
pSoldier->bBleeding = 0;
|
pSoldier->bBleeding = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user