- fix die with fade in Chicago

This commit is contained in:
Ilya Shurumov 2020-11-01 02:08:02 +06:00
parent 88f0fc72f9
commit 67814910b7

View File

@ -2781,16 +2781,18 @@ void UpdatePlayerInformation(void)
// [A] if all wheels above the water surface and we are falling down
// fade out and end the game
if(cp->hd.where.t[1] < -1000 && gDieWithFade == 0)
if(wheelsAboveWaterToDieWithFade > 0 && cp->hd.where.t[1] < -1000 && gDieWithFade == 0)
{
// fix for Havana tunnels
if (GameLevel == 1)
// fix for Havana tunnels and Chicago freeway
if (GameLevel <= 1)
{
if(wheelsAboveWaterToDieWithFade == 4)
gDieWithFade = 1;
}
else // car drown as usual
{
gDieWithFade = 1;
}
}
if (wheelsInWater == 4) // apply water damage