//************************************************************************************* // Switches from/to Game Mode/Editor Mode //************************************************************************************* void SetEditMode(long ed, const bool stop_sound) { LAST_JUMP_ENDTIME = 0; if(!DONT_ERASE_PLAYER) { player.lifePool.current = 0.1f; } RestoreAllLightsInitialStatus(); if (stop_sound) ARX_SOUND_MixerStop(ARX_SOUND_MixerGame); RestoreInitialIOStatus(); if (ed) { ARX_PATH_ComputeAllBoundingBoxes(); arxtime.pause(); } else { ARX_SCRIPT_ResetAll(true); EERIE_ANIMMANAGER_PurgeUnused(); } if(!DONT_ERASE_PLAYER) { ARX_PLAYER_MakeFreshHero(); } }
void SetEditMode() { LAST_JUMP_ENDTIME = 0; if(!DONT_ERASE_PLAYER) { player.lifePool.current = 0.1f; } RestoreAllLightsInitialStatus(); RestoreInitialIOStatus(); if(!DONT_ERASE_PLAYER) { ARX_PLAYER_MakeFreshHero(); } }