- fixed missing dive and surface player sounds

https://forum.zdoom.org/viewtopic.php?t=65233
This commit is contained in:
alexey.lysiuk 2019-07-05 10:13:21 +03:00 committed by drfrag
parent 7bf370dd63
commit 9d8b4f6c05

View file

@ -4281,11 +4281,12 @@ void AActor::SplashCheck()
bool AActor::UpdateWaterLevel(bool dosplash)
{
int oldlevel = waterlevel;
if (dosplash) SplashCheck();
double fh = -FLT_MAX;
bool reset = false;
int oldlevel = waterlevel;
waterlevel = 0;