diff options
| author | Simon <simon@hardwired.org.uk> | 2011-02-23 20:35:02 (GMT) |
|---|---|---|
| committer | Simon <simon@hardwired.org.uk> | 2011-02-23 20:35:02 (GMT) |
| commit | 5d4d815ad3e6510210c8b6646d972f317cb44caa (patch) | |
| tree | 9163696078af1b35cb3a907cdb34438533ea2091 /src/elements | |
| parent | fa76c4b45cd8de61508c62e8d276aee5a6083769 (diff) | |
| download | powder-5d4d815ad3e6510210c8b6646d972f317cb44caa.zip powder-5d4d815ad3e6510210c8b6646d972f317cb44caa.tar.gz | |
Fancier glow, now affected by Velocity, Pressure and Heat
Diffstat (limited to 'src/elements')
| -rw-r--r-- | src/elements/glow.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/elements/glow.c b/src/elements/glow.c index 621e5b1..0993e61 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].life = 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; |
