diff options
| author | Simon 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) |
| commit | 2ca07515c1367e31999d71c82982aa232e206acb (patch) | |
| tree | a9f2ec342fc977630b455d4bad8a973ce8fdb15a /src/elements/stkm.cpp | |
| parent | fa193eb7b4a76900a80bf9348a4877bf8943656e (diff) | |
| download | powder-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.cpp | 5 |
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; } } |
