summaryrefslogtreecommitdiff
path: root/src/simulation/SaveLoader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/simulation/SaveLoader.cpp')
-rw-r--r--src/simulation/SaveLoader.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/simulation/SaveLoader.cpp b/src/simulation/SaveLoader.cpp
index 2683a6f..71748c4 100644
--- a/src/simulation/SaveLoader.cpp
+++ b/src/simulation/SaveLoader.cpp
@@ -6,6 +6,7 @@
*/
#include <bzlib.h>
+#include <math.h>
#include "SaveLoader.h"
//!TODO: enum for LoadSave return
@@ -547,6 +548,11 @@ int SaveLoader::PSVLoad(unsigned char * data, int dataLength, Simulation * sim,
//STKM_init_legs(&(fighters[fcount]), i-1);
}
}
+ else if (parts[i-1].type == PT_SPNG)
+ {
+ if (fabs(parts[i-1].vx)>0.0f || fabs(parts[i-1].vy)>0.0f)
+ parts[i-1].flags |= FLAG_MOVABLE;
+ }
if (ver<48 && (ty==OLD_PT_WIND || (ty==PT_BRAY&&parts[i-1].life==0)))
{