MCPcopy Create free account
hub / github.com/assaultcube/AC / reorderscorecolumns

Function reorderscorecolumns

source/src/scoreboard.cpp:263–279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261extern bool watchingdemo;
262
263void reorderscorecolumns()
264{
265 static string scoreboardtitle;
266 needscoresreorder = false;
267 extern void *scoremenu;
268 sline sscore;
269
270 if(m_flags_) sscore.addcol(sc_flags, "flags");
271 sscore.addcol(sc_frags, "frags");
272 sscore.addcol(sc_deaths, "deaths");
273 sscore.addcol(sc_ratio, "ratio");
274 if(multiplayer(NULL) || watchingdemo) sscore.addcol(sc_lag, "pj/ping");
275 sscore.addcol(sc_clientnum, "cn");
276 sscore.addcol(sc_name, "name");
277 copystring(scoreboardtitle, sscore.getcols());
278 menutitlemanual(scoremenu, scoreboardtitle);
279}
280
281void renderscores(void *menu, bool init)
282{

Callers 1

renderscoresFunction · 0.85

Calls 3

multiplayerFunction · 0.85
copystringFunction · 0.85
menutitlemanualFunction · 0.85

Tested by

no test coverage detected