MCPcopy Index your code
hub / github.com/assaultcube/AC / newmap

Function newmap

source/src/world.cpp:791–801  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

789void mapenlarge() { if(empty_world(-1, false)) addmsg(SV_NEWMAP, "ri", -1); }
790void mapshrink() { if(empty_world(-2, false)) addmsg(SV_NEWMAP, "ri", -2); }
791void newmap(int *i)
792{
793 if(m_botmode) { conoutf("newmap not supported in bot mode"); return; }
794 if(empty_world(*i, false))
795 {
796 addmsg(SV_NEWMAP, "ri", max(*i, 0));
797 exechook(HOOK_SP_MP, "onNewMap", "");
798 }
799 defformatstring(startmillis)("%d", totalmillis);
800 alias("gametimestart", startmillis, true);
801}
802
803COMMAND(mapenlarge, "");
804COMMAND(mapshrink, "");

Callers

nothing calls this directly

Calls 6

empty_worldFunction · 0.85
addmsgFunction · 0.85
maxFunction · 0.85
exechookFunction · 0.85
aliasFunction · 0.85
conoutfFunction · 0.70

Tested by

no test coverage detected