// Reset the game between campaigns bool campaignReset(void) { debug(LOG_MAIN, "campaignReset"); gwShutDown(); mapShutdown(); shutdownTerrain(); // when the terrain textures are reloaded we need to reset the radar // otherwise it will end up as a terrain texture somehow ShutdownRadar(); InitRadar(); return true; }
// //////////////////////////////////////////////////////////////////////////// // //////////////////////////////////////////////////////////////////////////// // Free up after level specific data has been released but before base data is released // bool stageTwoShutDown(void) { debug(LOG_WZ, "== stageTwoShutDown =="); cdAudio_Stop(); freeAllStructs(); freeAllDroids(); freeAllFeatures(); freeAllFlagPositions(); if (!shutdownScripts()) { return false; } if (!messageShutdown()) { return false; } if (!mechanicsShutdown()) { return false; } if(!ShutdownRadar()) { return false; } interfaceShutDown(); cmdDroidShutDown(); //free up the gateway stuff? gwShutDown(); if (!mapShutdown()) { return false; } return true; }