diff options
Diffstat (limited to 'src/elements/isz.c')
| -rw-r--r-- | src/elements/isz.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/elements/isz.c b/src/elements/isz.c index 3f397a2..5bb465a 100644 --- a/src/elements/isz.c +++ b/src/elements/isz.c @@ -1,17 +1,14 @@ #include <powder.h> -int update_ISZ(UPDATE_FUNC_ARGS) { +int update_ISZ(UPDATE_FUNC_ARGS) { // for both ISZS and ISOZ float rr, rrr; if (1>rand()%200 && ((int)(-4.0f*(pv[y/CELL][x/CELL])))>(rand()%1000)) { - parts[i].type = PT_PHOT; + create_part(i, x, y, PT_PHOT); rr = (rand()%228+128)/127.0f; rrr = (rand()%360)*3.14159f/180.0f; - parts[i].life = 680; - parts[i].ctype = 0x3FFFFFFF; parts[i].vx = rr*cosf(rrr); parts[i].vy = rr*sinf(rrr); - create_part(i, x, y, PT_PHOT); } return 0; } |
