summaryrefslogtreecommitdiff
path: root/src/elements/stkm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/elements/stkm.c')
-rw-r--r--src/elements/stkm.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/elements/stkm.c b/src/elements/stkm.c
index 55fc225..47e24a2 100644
--- a/src/elements/stkm.c
+++ b/src/elements/stkm.c
@@ -15,6 +15,10 @@ int update_STKM(UPDATE_FUNC_ARGS) {
int r, rx, ry;
float pp, d;
float dt = 0.9;///(FPSB*FPSB); //Delta time in square
+
+ if ((parts[i].ctype>0 && parts[i].ctype<PT_NUM && ptypes[parts[i].ctype].falldown>0) || parts[i].ctype==SPC_AIR || parts[i].ctype == PT_NEUT || parts[i].ctype == PT_PHOT)
+ player[2] = parts[i].ctype;
+
//Tempirature handling
if (parts[i].temp<243)
parts[i].life -= 1;
@@ -420,5 +424,6 @@ int update_STKM(UPDATE_FUNC_ARGS) {
parts[i].life -= 1;
isplayer = 1;
+ parts[i].ctype = player[2];
return 0;
}