summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon <simon@hardwired.org.uk>2010-12-19 14:32:40 (GMT)
committer Simon <simon@hardwired.org.uk>2010-12-19 14:32:40 (GMT)
commit49a1baffe2b40275791b6a20af780d9779e8c986 (patch)
tree2cec43d913dca04ad4ca1f0f9218e29ae1f50831 /src
parent92d22ac59060800461d23714b2db1a75f7619d2b (diff)
downloadpowder-49a1baffe2b40275791b6a20af780d9779e8c986.zip
powder-49a1baffe2b40275791b6a20af780d9779e8c986.tar.gz
Correct file
Diffstat (limited to 'src')
-rw-r--r--src/powder.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/powder.c b/src/powder.c
index 5c9ae8e..eed6d38 100644
--- a/src/powder.c
+++ b/src/powder.c
@@ -1135,16 +1135,16 @@ void update_particles_i(pixel *vid, int start, int inc)
for(i=start; i<(NPART-starti); i+=inc)
if(parts[i].type)
{
- if (parts[i].update_func)
+ lx = parts[i].x;
+ ly = parts[i].y;
+ t = parts[i].type;
+ if (ptypes[t].update_func)
{
- if (parts[i].update_func (i))
+ if (ptypes[t].update_func (i))
goto killed;
}
//printf("parts[%d].type: %d\n", i, parts[i].type);
- lx = parts[i].x;
- ly = parts[i].y;
- t = parts[i].type;
if(parts[i].life && t!=PT_ACID && t!=PT_COAL && t!=PT_WOOD && t!=PT_NBLE && t!=PT_SWCH && t!=PT_STKM && t!=PT_FUSE && t!=PT_FSEP && t!=PT_BCOL && t!=PT_GOL && t!=PT_CRAC && t!=PT_DEUT)
{