MCPcopy Create free account
hub / github.com/atraczyk/2d-engine / P_pause

Function P_pause

engine/src/game.cpp:466–490  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

464};
465
466void P_pause(bool pause)
467{
468 bpause = pause;
469 if (pause)
470 {
471 sound.changeMasterVolume(-0.75f);
472 sound.cacheReverb(true);
473 game.menu.menuDarken = 0.5f;
474 }
475 else
476 {
477 if (!btransitioning)
478 {
479 I_zeroGameInput();
480 I_resetControls();
481 }
482 if (bstarted)
483 {
484 sound.sfxVolume = game.menu.savedVolume;
485 sound.cacheReverb(false);
486 }
487 sound.changeMasterVolume(0.75f);
488 game.menu.menuDarken = 0.0f;
489 }
490}
491
492void G_initializeMenus()
493{

Callers 3

G_initializeEventsFunction · 0.85
G_initializeMenusFunction · 0.85
I_updateProgramInputFunction · 0.85

Calls 4

I_zeroGameInputFunction · 0.85
I_resetControlsFunction · 0.85
changeMasterVolumeMethod · 0.80
cacheReverbMethod · 0.80

Tested by

no test coverage detected