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

Function randommap

source/src/server.cpp:346–352  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

344}
345
346servermap *randommap()
347{
348 if(servermaps.length() < 1) fatal("no maps available");
349 servermap *s = servermaps[rnd(servermaps.length())];
350 s->bestmode = 0; // tdm
351 return s;
352}
353
354SERVPARLIST(dumpsuggestions, 0, 1, 0, endis, "ddump maprot suggestions whenever recalculated");
355

Callers 1

recalcgamesuggestionsMethod · 0.85

Calls 2

fatalFunction · 0.70
lengthMethod · 0.45

Tested by

no test coverage detected