CSQC_END
}
}
+void CL_VM_UpdateShowingScoresState (int showingscores)
+{
+ prvm_eval_t *val;
+ if(cl.csqc_loaded)
+ {
+ CSQC_BEGIN
+ val = PRVM_GLOBALFIELDVALUE(prog->globaloffsets.sb_showscores);
+ if(val)
+ val->_float = showingscores;
+ CSQC_END
+ }
+}
void CL_VM_UpdateCoopDeathmatchGlobals (int gametype)
{
// Avoid global names for clean(er) coding
int dmg_take; // csqc
int dmg_save; // csqc
int dmg_origin; // csqc
+ int sb_showscores; // csqc
}
prvm_prog_globaloffsets_t;
prog->globaloffsets.dmg_take = PRVM_ED_FindGlobalOffset("dmg_take");
prog->globaloffsets.dmg_save = PRVM_ED_FindGlobalOffset("dmg_save");
prog->globaloffsets.dmg_origin = PRVM_ED_FindGlobalOffset("dmg_origin");
+ prog->globaloffsets.sb_showscores = PRVM_ED_FindGlobalOffset("sb_showscores");
// menu qc only uses some functions, nothing else
prog->funcoffsets.m_display = PRVM_ED_FindFunctionOffset("m_display");
void Sbar_IntermissionOverlay (void);
void Sbar_FinaleOverlay (void);
+void CL_VM_UpdateShowingScoresState (int showingscores);
+
/*
===============
if (sb_showscores)
return;
sb_showscores = true;
+ CL_VM_UpdateShowingScoresState(sb_showscores);
}
/*
void Sbar_DontShowScores (void)
{
sb_showscores = false;
+ CL_VM_UpdateShowingScoresState(sb_showscores);
}
void sbar_start(void)