From 1533abcb064c11efceb2731c00b8188107eb1ee2 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Fri, 5 Jul 2019 10:13:21 +0300 Subject: [PATCH] - fixed missing dive and surface player sounds https://forum.zdoom.org/viewtopic.php?t=65233 --- src/p_mobj.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/p_mobj.cpp b/src/p_mobj.cpp index decb58b3ae..f37bd669fc 100644 --- a/src/p_mobj.cpp +++ b/src/p_mobj.cpp @@ -4259,11 +4259,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;