mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-09-03 04:52:35 +02:00
there we go
This commit is contained in:
@@ -212,7 +212,7 @@ struct particle
|
||||
float pavg[2];
|
||||
int flags;
|
||||
int tmp;
|
||||
void (*update_func) (int);
|
||||
int (*update_func) (int);
|
||||
};
|
||||
typedef struct particle particle;
|
||||
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user