diff options
Diffstat (limited to 'src/elements/prti.c')
| -rw-r--r-- | src/elements/prti.c | 2 |
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); |
