summaryrefslogtreecommitdiff
path: root/src/elements/stkm.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-04-18 15:12:16 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-04-18 15:12:16 (GMT)
commit2ca07515c1367e31999d71c82982aa232e206acb (patch)
treea9f2ec342fc977630b455d4bad8a973ce8fdb15a /src/elements/stkm.cpp
parentfa193eb7b4a76900a80bf9348a4877bf8943656e (diff)
downloadpowder-2ca07515c1367e31999d71c82982aa232e206acb.zip
powder-2ca07515c1367e31999d71c82982aa232e206acb.tar.gz
TPT: Fix fighters not going through portals correctly f41af45620
Diffstat (limited to 'src/elements/stkm.cpp')
-rw-r--r--src/elements/stkm.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/elements/stkm.cpp b/src/elements/stkm.cpp
index 68ef1ed..e7eecf4 100644
--- a/src/elements/stkm.cpp
+++ b/src/elements/stkm.cpp
@@ -453,7 +453,10 @@ void STKM_interact(Simulation * sim, playerst* playerp, int i, int x, int y)
{
sim->portalp[sim->parts[r>>8].tmp][count][nnx] = sim->parts[i];
sim->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 (sim->portalp[sim->parts[r>>8].tmp][count][nnx].type==PT_FIGH)
+ sim->fighcount++;
break;
}
}