mirror of
https://github.com/OpenDriver2/REDRIVER2.git
synced 2024-11-22 18:32:42 +01:00
- fix die with fade in Chicago
This commit is contained in:
parent
88f0fc72f9
commit
67814910b7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user