diff options
| author | Simon <simon@hardwired.org.uk> | 2011-02-23 20:54:11 (GMT) |
|---|---|---|
| committer | Simon <simon@hardwired.org.uk> | 2011-02-23 20:54:11 (GMT) |
| commit | 1b9b1752a77ec0bd9c9d9b02a6a0103f1e7f8c21 (patch) | |
| tree | 6a16b8ddffbaf82ef0144d3056b13826aa41d8a2 /src/elements | |
| parent | 5d4d815ad3e6510210c8b6646d972f317cb44caa (diff) | |
| download | powder-1b9b1752a77ec0bd9c9d9b02a6a0103f1e7f8c21.zip powder-1b9b1752a77ec0bd9c9d9b02a6a0103f1e7f8c21.tar.gz | |
Switch life to ctype for, photons apparently use the GLOW ctype for something
Diffstat (limited to 'src/elements')
| -rw-r--r-- | src/elements/glow.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/elements/glow.c b/src/elements/glow.c index 0993e61..d692233 100644 --- a/src/elements/glow.c +++ b/src/elements/glow.c @@ -16,7 +16,7 @@ int update_GLOW(UPDATE_FUNC_ARGS) { parts[r>>8].life = 10; } } - parts[i].life = pv[y/CELL][x/CELL]*16; + 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); |
