summaryrefslogtreecommitdiff
path: root/src/elements/prti.c
diff options
context:
space:
mode:
authorjacksonmj <jacksonmj@jacksonmj.none>2011-01-11 14:22:24 (GMT)
committer jacksonmj <jacksonmj@jacksonmj.none>2011-01-11 21:17:02 (GMT)
commitdaa6af0cc25076d9484d1e1a776853943231f5a7 (patch)
treea187b78d11aba690c59cd27322fa57ceaa1876ba /src/elements/prti.c
parent4006bdf4c22564e916092d6d63ae63d1fa6bc5b5 (diff)
downloadpowder-daa6af0cc25076d9484d1e1a776853943231f5a7.zip
powder-daa6af0cc25076d9484d1e1a776853943231f5a7.tar.gz
Small fixes and cleanup
Diffstat (limited to 'src/elements/prti.c')
-rw-r--r--src/elements/prti.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/elements/prti.c b/src/elements/prti.c
index a7e2013..6cbed9f 100644
--- a/src/elements/prti.c
+++ b/src/elements/prti.c
@@ -19,7 +19,7 @@ int update_PRTI(UPDATE_FUNC_ARGS) {
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;
- if (parts[r>>8].type==PT_SPRK)
+ if ((r&0xFF)==PT_SPRK)
part_change_type(r>>8,x+rx,y+ry,parts[r>>8].ctype);
else
kill_part(r>>8);