MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / InitGame

Function InitGame

Descent3/game.cpp:785–804  ·  view source on GitHub ↗

Setup whatever needs to be setup for game mode

Source from the content-addressed store, hash-verified

783
784// Setup whatever needs to be setup for game mode
785bool InitGame() {
786#ifdef _DEBUG
787 // Put player in flying mode
788 SlewStop(Player_object);
789#endif
790
791 InitHUD();
792
793 if (!InitGameScript()) // initializes game script
794 return false;
795
796 Frametime = 0.1f;
797 Skip_render_game_frame = false;
798
799 // reset controllers.
800 Controller->mask_controllers((Current_pilot.read_controller & READF_JOY) ? true : false,
801 (Current_pilot.read_controller & READF_MOUSE) ? true : false);
802
803 return true;
804}
805
806#ifdef EDITOR
807bool Game_being_played_from_quick_play = false;

Callers 2

QuickPlayGameFunction · 0.85
PlayGameFunction · 0.85

Calls 4

SlewStopFunction · 0.85
InitHUDFunction · 0.85
InitGameScriptFunction · 0.85
mask_controllersMethod · 0.45

Tested by

no test coverage detected