[Fix] Forgot to remove special effects when in hyperspace.`

This commit is contained in:
Allanis 2013-02-26 23:46:55 +00:00
parent cc1d09c4b5
commit 9175091456

View File

@ -11,6 +11,7 @@
#include "pause.h" #include "pause.h"
#include "weapon.h" #include "weapon.h"
#include "toolkit.h" #include "toolkit.h"
#include "spfx.h"
#include "player.h" #include "player.h"
#define XML_PLANET_ID "Planets" #define XML_PLANET_ID "Planets"
@ -183,6 +184,7 @@ void space_init(const char* sysname) {
player_clear(); // Clears targets. player_clear(); // Clears targets.
pilots_clean(); // Destroy all the current pilots, exept player. pilots_clean(); // Destroy all the current pilots, exept player.
weapon_clear(); // Get rid of all the weapons. weapon_clear(); // Get rid of all the weapons.
spfx_clear(); // Remove of explosions.
if((sysname == NULL) && (cur_system == NULL)) if((sysname == NULL) && (cur_system == NULL))
ERR("Cannot reinit system if there is no system previously loaded"); ERR("Cannot reinit system if there is no system previously loaded");