mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-26 22:11:43 +00:00
- fixed handling of *dive and *surface sounds.
The old water level needs to be retrieved before handling splashes, because SplashCheck already updates the waterlevel. This was swapped around by a recent PR.
This commit is contained in:
parent
a952d0f36a
commit
fbd604b725
1 changed files with 2 additions and 2 deletions
|
@ -4388,9 +4388,9 @@ void AActor::SplashCheck()
|
|||
|
||||
bool AActor::UpdateWaterLevel(bool dosplash)
|
||||
{
|
||||
if (dosplash) SplashCheck();
|
||||
|
||||
int oldlevel = waterlevel;
|
||||
|
||||
if (dosplash) SplashCheck();
|
||||
UpdateWaterDepth(false);
|
||||
|
||||
// Play surfacing and diving sounds, as appropriate.
|
||||
|
|
Loading…
Reference in a new issue