diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2011-06-28 12:58:16 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2011-06-28 12:58:16 (GMT) |
| commit | 437f13f42458052b7289d7cdc4c36aa3153a076e (patch) | |
| tree | aa8d66647f20c55c25c7ec818bc97f1a524363f4 /src/elements/phot.c | |
| parent | 3fe82bf525584bfe333013da218b530fd2f277f2 (diff) | |
| download | powder-437f13f42458052b7289d7cdc4c36aa3153a076e.zip powder-437f13f42458052b7289d7cdc4c36aa3153a076e.tar.gz | |
Powered Breakable clone, Gravity Pump, New menu section for powered elements (needs icon)
Diffstat (limited to 'src/elements/phot.c')
| -rw-r--r-- | src/elements/phot.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/elements/phot.c b/src/elements/phot.c index b4b6157..12e7da5 100644 --- a/src/elements/phot.c +++ b/src/elements/phot.c @@ -3,6 +3,8 @@ int update_PHOT(UPDATE_FUNC_ARGS) { int r, rt, rx, ry; float rr, rrr; + parts[i].pavg[0] = x; + parts[i].pavg[1] = y; if (!parts[i].ctype) { kill_part(i); return 1; @@ -37,12 +39,12 @@ int update_PHOT(UPDATE_FUNC_ARGS) { pv[y/CELL][x/CELL] -= 15.0f * CFDS; } } - r = pmap[y][x]; - rt = r&0xFF; - if (rt==PT_CLNE || rt==PT_PCLN || rt==PT_BCLN) { + //r = pmap[y][x]; + //rt = r&0xFF; + /*if (rt==PT_CLNE || rt==PT_PCLN || rt==PT_BCLN || rt==PT_PBCN) { if (!parts[r>>8].ctype) parts[r>>8].ctype = PT_PHOT; - } + }*/ return 0; } |
