summaryrefslogtreecommitdiff
path: root/src/elements/glow.c
diff options
context:
space:
mode:
authorCracker64 <cracker642@gmail.com>2011-03-10 20:43:27 (GMT)
committer Cracker64 <cracker642@gmail.com>2011-03-10 20:43:27 (GMT)
commit3b048f8a0634973e45703373d22bd9360a6c170c (patch)
treea4fac03f3d2ca057b1a1604ece16bf84215c2826 /src/elements/glow.c
parentca1cd0da065a1774dbeeba161139f580ab7f711a (diff)
downloadpowder-3b048f8a0634973e45703373d22bd9360a6c170c.zip
powder-3b048f8a0634973e45703373d22bd9360a6c170c.tar.gz
merge merge merge
Diffstat (limited to 'src/elements/glow.c')
-rw-r--r--src/elements/glow.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/elements/glow.c b/src/elements/glow.c
index 621e5b1..d692233 100644
--- a/src/elements/glow.c
+++ b/src/elements/glow.c
@@ -16,6 +16,10 @@ int update_GLOW(UPDATE_FUNC_ARGS) {
parts[r>>8].life = 10;
}
}
+ parts[i].ctype = pv[y/CELL][x/CELL]*16;
+
+ parts[i].tmp = abs((int)((vx[y/CELL][x/CELL]+vy[y/CELL][x/CELL])*16.0f)) + abs((int)((parts[i].vx+parts[i].vy)*64.0f));
+ //printf("%f %f\n", parts[i].vx, parts[i].vy);
if (parts[i].type==PT_NONE) {
kill_part(i);
return 1;