summaryrefslogtreecommitdiff
path: root/src/elements/stkm.c
diff options
context:
space:
mode:
authorjacksonmj <mj-pt@jacksonmj.co.uk>2012-03-13 18:26:56 (GMT)
committer jacksonmj <mj-pt@jacksonmj.co.uk>2012-03-13 18:27:47 (GMT)
commitf41af456209923f64f8e1474f7fd06f2889c75b6 (patch)
tree5fa3cec39e2f21a577ef7922e7c5af98b00251d1 /src/elements/stkm.c
parente83a1a21aec87374625106d654dbf8af0ff8117d (diff)
downloadpowder-f41af456209923f64f8e1474f7fd06f2889c75b6.zip
powder-f41af456209923f64f8e1474f7fd06f2889c75b6.tar.gz
Fix fighters not going through portals correctly
Diffstat (limited to 'src/elements/stkm.c')
-rw-r--r--src/elements/stkm.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/elements/stkm.c b/src/elements/stkm.c
index 08cb1ba..d8286d5 100644
--- a/src/elements/stkm.c
+++ b/src/elements/stkm.c
@@ -451,7 +451,10 @@ void STKM_interact(playerst* playerp, int i, int x, int y)
{
portalp[parts[r>>8].tmp][count][nnx] = parts[i];
kill_part(i);
- playerp->spwn = 1;//stop SPWN creating a new STKM while he is in portal
+ //stop new STKM/fighters being created to replace the ones in the portal:
+ playerp->spwn = 1;
+ if (portalp[parts[r>>8].tmp][count][nnx].type==PT_FIGH)
+ fighcount++;
break;
}
}