MCPcopy Create free account
hub / github.com/GlobedGD/globed2 / resetLevel

Function resetLevel

src/modules/deathlink/DeathlinkModule.cpp:39–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37 }
38
39 $override
40 void resetLevel() {
41 auto gameLayer = GlobedGJBGL::get();
42
43 if (gameLayer && gameLayer->active() && gameLayer->isManuallyResetting()) {
44 // if the user hit R or otherwise manually reset the level, just play it as a normal death instead
45 gameLayer->killLocalPlayer();
46 return;
47 }
48
49 PlayLayer::resetLevel();
50 }
51};
52
53}

Callers

nothing calls this directly

Calls 4

activeMethod · 0.80
isManuallyResettingMethod · 0.80
killLocalPlayerMethod · 0.80
getFunction · 0.50

Tested by

no test coverage detected