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/plsm.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/plsm.c')
| -rw-r--r-- | src/elements/plsm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/elements/plsm.c b/src/elements/plsm.c index 3bab693..6cd0275 100644 --- a/src/elements/plsm.c +++ b/src/elements/plsm.c @@ -2,7 +2,7 @@ int graphics_PLSM(GRAPHICS_FUNC_ARGS) { - int caddress = restrict_flt(restrict_flt((float)parts[i].life, 0.0f, 200.0f)*3, 0.0f, (200.0f*3)-3); + int caddress = restrict_flt(restrict_flt((float)cpart->life, 0.0f, 200.0f)*3, 0.0f, (200.0f*3)-3); *colr = (unsigned char)plasma_data[caddress]; *colg = (unsigned char)plasma_data[caddress+1]; *colb = (unsigned char)plasma_data[caddress+2]; |
