string forcefog;
void WaypointSprite_Load();
void ConsoleCommand_macro_init();
+void Init_TargetMusic();
void CSQC_Init(void)
{
prvm_language = cvar_string("prvm_language");
minimapname = strzone(minimapname);
WarpZone_Init();
+ Init_TargetMusic();
hud_skin_path = strzone(strcat("gfx/hud/", autocvar_hud_skin));
hud_configure_prev = -1;
if(vol != vol0)
{
if(e.noise == "")
+#ifdef COMPAT_XON070_BGMVOLUME
+ cvar_settemp("bgmvolume", ftos(vol));
+#else
cvar_set("bgmvolume", ftos(vol));
+#endif
else if(vol0 < 0)
sound(e, CH_BGM_SINGLE, e.noise, vol, ATTN_NONE); // restart
else
}
music_trigger = world;
- if(best)
- bgmtime = getsoundtime(best, CH_BGM_SINGLE);
- else
+ if(best.noise == "")
bgmtime = gettime(GETTIME_CDTRACK);
+ else
+ bgmtime = getsoundtime(best, CH_BGM_SINGLE);
}
void Init_TargetMusic()