summaryrefslogtreecommitdiff
path: root/src/elements/deut.c
diff options
context:
space:
mode:
authorSimon 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)
commit1c7b9d9949f4aca2ceba44b9d41420ad34c69f94 (patch)
treef917e85e29ac8c95b4ed894ea4b8b764e2290c47 /src/elements/deut.c
parent014c1fbad669b0cf1abd881e696f0c7e432b3707 (diff)
downloadpowder-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/deut.c')
-rw-r--r--src/elements/deut.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/elements/deut.c b/src/elements/deut.c
index bee3753..9276de1 100644
--- a/src/elements/deut.c
+++ b/src/elements/deut.c
@@ -71,18 +71,18 @@ int update_DEUT(UPDATE_FUNC_ARGS) {
int graphics_DEUT(GRAPHICS_FUNC_ARGS)
{
- if(parts[i].life>=700)
+ if(cpart->life>=700)
{
- *colr += parts[i].life*1;
- *colg += parts[i].life*2;
- *colb += parts[i].life*3;
+ *colr += cpart->life*1;
+ *colg += cpart->life*2;
+ *colb += cpart->life*3;
*pixel_mode |= PMODE_GLOW;
}
else
{
- *colr += parts[i].life*1;
- *colg += parts[i].life*2;
- *colb += parts[i].life*3;
+ *colr += cpart->life*1;
+ *colg += cpart->life*2;
+ *colb += cpart->life*3;
*pixel_mode |= PMODE_BLUR;
}
return 0;