From 9660e0880b401051ccf79e6af6add76a667baeb6 Mon Sep 17 00:00:00 2001 From: kraflab Date: Tue, 7 Dec 2021 22:36:59 +0100 Subject: [PATCH] Fix window limit --- prboom2/src/dsda/sfx.c | 2 +- prboom2/src/m_misc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/prboom2/src/dsda/sfx.c b/prboom2/src/dsda/sfx.c index 758a96999..cc78cbd8e 100644 --- a/prboom2/src/dsda/sfx.c +++ b/prboom2/src/dsda/sfx.c @@ -146,7 +146,7 @@ dboolean dsda_BlockSFX(sfxinfo_t *sfx) { if (!dsda_parallel_sfx_limit) return false; - if (gametic - sfx->parallel_tic > dsda_parallel_sfx_window) { + if (gametic - sfx->parallel_tic >= dsda_parallel_sfx_window) { sfx->parallel_tic = gametic; sfx->parallel_count = 0; } diff --git a/prboom2/src/m_misc.c b/prboom2/src/m_misc.c index 100f503be..60be5968a 100644 --- a/prboom2/src/m_misc.c +++ b/prboom2/src/m_misc.c @@ -1040,7 +1040,7 @@ default_t defaults[] = { "dsda_cheat_codes", { (int *) &dsda_setting[dsda_cheat_codes] }, { 1 }, 0, 1, def_bool, ss_stat }, { "dsda_allow_jumping", { &dsda_allow_jumping }, { 0 }, 0, 1, def_bool, ss_stat }, { "dsda_parallel_sfx_limit", { &dsda_parallel_sfx_limit }, { 0 }, 0, 32, def_int, ss_stat }, - { "dsda_parallel_sfx_window", { &dsda_parallel_sfx_window }, { 1 }, 0, 32, def_int, ss_stat }, + { "dsda_parallel_sfx_window", { &dsda_parallel_sfx_window }, { 1 }, 1, 32, def_int, ss_stat }, // NSM {"Video capture encoding settings",{NULL},{0},UL,UL,def_none,ss_none},