only play stairjank sound if we have its visuals enabled

This commit is contained in:
alufolie91 committed 2026-07-19 02:42:18 +02:00
1 parent 735c4b67dc
commit f09c61cee9
1 file changed
+1 -1
+1 -1
View File
@@ -2610,7 +2610,7 @@ boolean P_TryMove(mobj_t *thing, fixed_t x, fixed_t y, boolean allowdropoff)
// sound does not work out all that well for kart maps
// best i can do...
if (cv_stairjanksfx.value)
if (cv_stairjank.value && cv_stairjanksfx.value)
S_StartSoundAtVolume(thing, (thing->player->stairjank >= 8 ? sfx_s23b : sfx_s268), 192); // dont blast this at full volume lul
// Can't spawn things during P_TryMove, because global variables :)