Skip to content

Commit

Permalink
Fix window limit
Browse files Browse the repository at this point in the history
  • Loading branch information
kraflab committed Dec 7, 2021
1 parent c00a288 commit 9660e08
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion prboom2/src/dsda/sfx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion prboom2/src/m_misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand Down

0 comments on commit 9660e08

Please sign in to comment.