summaryrefslogtreecommitdiff
path: root/src/elements/prti.c
diff options
context:
space:
mode:
authorCracker64 <cracker642@gmail.com>2011-04-25 17:05:35 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2011-04-25 18:00:27 (GMT)
commit24f59050204017c641749c59a69e40d53074c028 (patch)
tree230f97023a3d8afb21f91e853db28c239b89c59a /src/elements/prti.c
parent4c153d2f34b0228e398ef3d1d935004dba6a9318 (diff)
downloadpowder-24f59050204017c641749c59a69e40d53074c028.zip
powder-24f59050204017c641749c59a69e40d53074c028.tar.gz
portal now uses particles as storage, so it keeps everything.
Diffstat (limited to 'src/elements/prti.c')
-rw-r--r--src/elements/prti.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/elements/prti.c b/src/elements/prti.c
index d21bf56..7205844 100644
--- a/src/elements/prti.c
+++ b/src/elements/prti.c
@@ -34,11 +34,9 @@ int update_PRTI(UPDATE_FUNC_ARGS) {
continue;
}
for ( nnx=0; nnx<80; nnx++)
- if (!portal[parts[i].tmp][count-1][nnx])
+ if (!portalp[parts[i].tmp][count-1][nnx].type)
{
- portal[parts[i].tmp][count-1][nnx] = parts[r>>8].type;
- portaltemp[parts[i].tmp][count-1][nnx] = parts[r>>8].temp;
- portalctype[parts[i].tmp][count-1][nnx] = parts[r>>8].ctype;
+ portalp[parts[i].tmp][count-1][nnx] = parts[r>>8];
if ((r&0xFF)==PT_SPRK)
part_change_type(r>>8,x+rx,y+ry,parts[r>>8].ctype);
else