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

Function resetmap

source/src/clientgame.cpp:1128–1148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1126COMMAND(gamemodedesc, "is");
1127
1128void resetmap(bool mrproper)
1129{
1130 resetsleep();
1131 resetzones();
1132 clearminimap();
1133 cleardynlights();
1134 reseteditor();
1135 changedents.setsize(0);
1136 deleted_ents.setsize(0);
1137 particlereset();
1138 setmapinfo("", "");
1139 if(mrproper)
1140 {
1141 audiomgr.clearworldsounds();
1142 setvar("gamespeed", 100);
1143 setvar("paused", 0);
1144 setvar("fog", DEFAULT_FOG);
1145 setvar("fogcolour", DEFAULT_FOGCOLOUR);
1146 setvar("shadowyaw", DEFAULT_SHADOWYAW);
1147 }
1148}
1149
1150int suicided = -1;
1151

Callers 4

empty_worldFunction · 0.85
load_worldFunction · 0.85
restoreMethod · 0.85
movemapFunction · 0.85

Calls 10

resetsleepFunction · 0.85
resetzonesFunction · 0.85
clearminimapFunction · 0.85
cleardynlightsFunction · 0.85
reseteditorFunction · 0.85
particleresetFunction · 0.85
setmapinfoFunction · 0.85
setvarFunction · 0.85
setsizeMethod · 0.80
clearworldsoundsMethod · 0.80

Tested by

no test coverage detected