diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2011-10-23 12:52:26 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2011-10-23 12:52:26 (GMT) |
| commit | 1c7b9d9949f4aca2ceba44b9d41420ad34c69f94 (patch) | |
| tree | f917e85e29ac8c95b4ed894ea4b8b764e2290c47 /src/elements/lava.c | |
| parent | 014c1fbad669b0cf1abd881e696f0c7e432b3707 (diff) | |
| download | powder-1c7b9d9949f4aca2ceba44b9d41420ad34c69f94.zip powder-1c7b9d9949f4aca2ceba44b9d41420ad34c69f94.tar.gz | |
Pass particle pointer to graphics update function instead of index. Make PIPE use subcall to get graphics info. Cache for particle graphics properties. Stickman PSPEC_STICKMAN added and implemented
Diffstat (limited to 'src/elements/lava.c')
| -rw-r--r-- | src/elements/lava.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/elements/lava.c b/src/elements/lava.c index a748cf7..0a9fb8a 100644 --- a/src/elements/lava.c +++ b/src/elements/lava.c @@ -2,9 +2,9 @@ int graphics_LAVA(GRAPHICS_FUNC_ARGS) { - *colr = parts[i].life * 2 + 0xE0; - *colg = parts[i].life * 1 + 0x50; - *colb = parts[i].life / 2 + 0x10; + *colr = cpart->life * 2 + 0xE0; + *colg = cpart->life * 1 + 0x50; + *colb = cpart->life / 2 + 0x10; if (*colr>255) *colr = 255; if (*colg>192) *colg = 192; if (*colb>128) *colb = 128; |
