From 3c27ec8cbde1ddf36b850fd13edb855e6ab0888c Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Tue, 27 Apr 2021 00:01:25 +0200 Subject: [PATCH] - tested all of Duke's and RR's cutscenes. --- source/common/audio/music/music.cpp | 4 +++ source/common/scripting/core/dynarrays.cpp | 4 +-- .../common/scripting/interface/vmnatives.cpp | 3 +- source/core/screenjob.cpp | 29 +++++++++++++++++++ source/core/screenjob.h | 3 ++ source/games/duke/src/2d_d.cpp | 28 ------------------ source/games/duke/src/funct.h | 3 -- source/games/duke/src/game_misc.cpp | 18 ++++++------ source/games/duke/src/premap.cpp | 3 +- .../static/filter/redneck/engine/engine.def | 25 ++++++++++++++++ .../static/zscript/games/duke/ui/cutscenes.zs | 6 ++-- .../static/zscript/games/duke/ui/screens.zs | 10 +++---- wadsrc/static/zscript/screenjob.zs | 6 +++- 13 files changed, 86 insertions(+), 56 deletions(-) create mode 100644 wadsrc/static/filter/redneck/engine/engine.def diff --git a/source/common/audio/music/music.cpp b/source/common/audio/music/music.cpp index c1c8290f6..f81b2396c 100644 --- a/source/common/audio/music/music.cpp +++ b/source/common/audio/music/music.cpp @@ -138,6 +138,10 @@ void S_StopCustomStream(SoundStream *stream) void S_PauseAllCustomStreams(bool on) { + static bool paused = false; + + if (paused == on) return; + paused = on; for (auto s : customStreams) { s->SetPaused(on); diff --git a/source/common/scripting/core/dynarrays.cpp b/source/common/scripting/core/dynarrays.cpp index 4182d1d95..6be216c12 100644 --- a/source/common/scripting/core/dynarrays.cpp +++ b/source/common/scripting/core/dynarrays.cpp @@ -416,10 +416,8 @@ DEFINE_ACTION_FUNCTION_NATIVE(FDynArray_I32, Push, ArrayPush