fix: - alternative heli fuel system read the wrong parameters from Helicopter_Settings.INI

- when alternative heli fuel system was turned off the heli wouldn't refuel at all despite being at a refuel site

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7754 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
silversurfer
2015-02-26 17:14:52 +00:00
parent b2d35f6333
commit 34803db3cd
2 changed files with 8 additions and 2 deletions
+6
View File
@@ -937,6 +937,12 @@ void ReFuelHelicopter( void )
// reset hover time
gubHelicopterHoverTime = 0;
}
else
{
// refuel instantly
iTotalHeliDistanceSinceRefuel = 0;
AddStrategicEvent( EVENT_HELICOPTER_REFUEL_FOR_A_MINUTE, GetWorldTotalMin(), 0 );
}
return;
}