[Fix] Forgot to remove special effects when in hyperspace.`
This commit is contained in:
parent
cc1d09c4b5
commit
9175091456
@ -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");
|
||||||
|
Loading…
Reference in New Issue
Block a user