summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFelix Wallin <nibbler.v1@gmail.com>2010-12-14 20:59:37 (GMT)
committer Felix Wallin <nibbler.v1@gmail.com>2010-12-14 20:59:37 (GMT)
commit9c805f864315665a6d7fd5d6c5b319c669f25988 (patch)
treedeae72a611085291bdec26863d99cf4fa6a9aa1c /src
parentfae101b1df75395e8772aac27da190e6a69d5d8b (diff)
downloadpowder-9c805f864315665a6d7fd5d6c5b319c669f25988.zip
powder-9c805f864315665a6d7fd5d6c5b319c669f25988.tar.gz
there we go
Diffstat (limited to 'src')
-rw-r--r--src/powder.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/powder.c b/src/powder.c
index dde0ded..5c9ae8e 100644
--- a/src/powder.c
+++ b/src/powder.c
@@ -884,7 +884,7 @@ void update_particles_i(pixel *vid, int start, int inc)
int starti = (start*-1);
if(sys_pause&&!framerender)
return;
- if(ISGRAV==1)
+ if(ISGRAV==1)
{
ISGRAV = 0;
GRAV ++;
@@ -1135,6 +1135,11 @@ 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)
+ {
+ if (parts[i].update_func (i))
+ goto killed;
+ }
//printf("parts[%d].type: %d\n", i, parts[i].type);
lx = parts[i].x;