Merge branch 'reducevfx-additions' into 'master'

Reduce VFX additions for flickering hud elements and cup select

See merge request KartKrew/RingRacers!76
This commit is contained in:
Eidolon 2025-08-22 18:16:25 -05:00
commit 7d5e74e72c
2 changed files with 27 additions and 9 deletions

View file

@ -454,7 +454,11 @@ Visibility is_object_visible(const mobj_t* mobj)
case MT_SPRAYCAN:
case MT_SUPER_FLICKY:
// Always flickers.
return Visibility::kFlicker;
// Actually no, it gave my friend a migraine, this will *not* always flicker
if (cv_reducevfx.value)
return Visibility::kTransparent;
else
return Visibility::kFlicker;
default:
// Transparent when not visible.

View file

@ -3257,14 +3257,28 @@ void M_DrawCupSelect(void)
if (windata)
{
M_DrawCupWinData(
x,
y,
templevelsearch.cup,
cv_dummygpdifficulty.value,
(cupgrid.previewanim & 1),
false
);
if (cv_reducevfx.value)
{
M_DrawCupWinData(
x,
y,
templevelsearch.cup,
cv_dummygpdifficulty.value,
false,
false
);
}
else
{
M_DrawCupWinData(
x,
y,
templevelsearch.cup,
cv_dummygpdifficulty.value,
(cupgrid.previewanim & 1),
false
);
}
}
}
}