We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76a7eec commit 6ff5de4Copy full SHA for 6ff5de4
csqc/events.qc
@@ -310,9 +310,15 @@ string cached_timer;
310
string GetGrenTimerSound() {
311
string wav = CVARS(FOCMD_GRENTIMERSOUND);
312
313
- if (cached_timer != wav) {
314
- precache_sound(wav);
315
- cached_timer = wav;
+ // The string NE-uop below is suspect in crashes. Possible interaction
+ // with cvar_string implementation. Hopefully the migration to autocvar
+ // resolves this, but also put it behind a debug control temporarily so we
316
+ // can test with/without.
317
+ if (CVARF(fo_grentimer_debug) & 8 == 1) {
318
+ if (cached_timer != wav) {
319
+ precache_sound(wav);
320
+ cached_timer = wav;
321
+ }
322
}
323
return wav;
324
0 commit comments