bring back original fuzz mode option (#2228)

* fix reset to default
This commit is contained in:
Roman Fomin 2025-03-24 16:25:09 +07:00 committed by GitHub
parent 472cc85b62
commit 8735e76a85
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 9 additions and 5 deletions

View File

@ -3258,7 +3258,7 @@ static const char *exit_sequence_strings[] = {
}; };
static const char *fuzzmode_strings[] = { static const char *fuzzmode_strings[] = {
"Vanilla", "Refraction", "Shadow" "Blocky", "Refraction", "Shadow", "Original"
}; };
static setup_menu_t gen_settings5[] = { static setup_menu_t gen_settings5[] = {

View File

@ -684,6 +684,9 @@ void R_SetFuzzColumnMode(void)
case FUZZ_SHADOW: case FUZZ_SHADOW:
R_DrawFuzzColumn = DrawFuzzColumnShadow; R_DrawFuzzColumn = DrawFuzzColumnShadow;
break; break;
case FUZZ_ORIGINAL:
R_DrawFuzzColumn = DrawFuzzColumnOriginal;
break;
} }
} }

View File

@ -53,6 +53,7 @@ typedef enum
FUZZ_BLOCKY, FUZZ_BLOCKY,
FUZZ_REFRACTION, FUZZ_REFRACTION,
FUZZ_SHADOW, FUZZ_SHADOW,
FUZZ_ORIGINAL
} fuzzmode_t; } fuzzmode_t;
extern fuzzmode_t fuzzmode; extern fuzzmode_t fuzzmode;

View File

@ -1019,6 +1019,8 @@ void R_InitAnyRes(void)
void R_BindRenderVariables(void) void R_BindRenderVariables(void)
{ {
BIND_NUM_GENERAL(extra_level_brightness, 0, 0, 4, "Level brightness"); BIND_NUM_GENERAL(extra_level_brightness, 0, 0, 4, "Level brightness");
BIND_NUM_GENERAL(fuzzmode, FUZZ_BLOCKY, FUZZ_BLOCKY, FUZZ_ORIGINAL,
"Partial Invisibility (0 = Blocky; 1 = Refraction; 2 = Shadow, 3 = Original)");
BIND_BOOL_GENERAL(stretchsky, false, "Stretch short skies"); BIND_BOOL_GENERAL(stretchsky, false, "Stretch short skies");
BIND_BOOL_GENERAL(linearsky, false, "Linear horizontal scrolling for skies"); BIND_BOOL_GENERAL(linearsky, false, "Linear horizontal scrolling for skies");
BIND_BOOL_GENERAL(r_swirl, false, "Swirling animated flats"); BIND_BOOL_GENERAL(r_swirl, false, "Swirling animated flats");
@ -1030,7 +1032,8 @@ void R_BindRenderVariables(void)
BIND_NUM_GENERAL(invul_mode, INVUL_MBF, INVUL_VANILLA, INVUL_GRAY, BIND_NUM_GENERAL(invul_mode, INVUL_MBF, INVUL_VANILLA, INVUL_GRAY,
"Invulnerability effect (0 = Vanilla; 1 = MBF; 2 = Gray)"); "Invulnerability effect (0 = Vanilla; 1 = MBF; 2 = Gray)");
BIND_BOOL(flashing_hom, true, "Enable flashing of the HOM indicator"); BIND_BOOL(flashing_hom, true, "Enable flashing of the HOM indicator");
BIND_NUM(screenblocks, 10, 3, UL, "Size of game-world screen"); M_BindNum("screenblocks", &screenblocks, NULL, 10, 3,
UL, ss_stat, wad_no, "Size of game-world screen");
M_BindBool("translucency", &translucency, NULL, true, ss_gen, wad_yes, M_BindBool("translucency", &translucency, NULL, true, ss_gen, wad_yes,
"Translucency for some things"); "Translucency for some things");
@ -1040,9 +1043,6 @@ void R_BindRenderVariables(void)
M_BindBool("flipcorpses", &flipcorpses, NULL, false, ss_enem, wad_no, M_BindBool("flipcorpses", &flipcorpses, NULL, false, ss_enem, wad_no,
"Randomly mirrored death animations"); "Randomly mirrored death animations");
M_BindNum("fuzzmode", &fuzzmode, NULL,
FUZZ_BLOCKY, FUZZ_BLOCKY, FUZZ_SHADOW, ss_none, wad_no,
"Partial Invisibility (0 = Vanilla; 1 = Refraction; 2 = Shadow)");
BIND_BOOL(draw_nearby_sprites, true, BIND_BOOL(draw_nearby_sprites, true,
"Draw sprites overlapping into visible sectors"); "Draw sprites overlapping into visible sectors");