diff options
Diffstat (limited to 'src/powder.c')
| -rw-r--r-- | src/powder.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/powder.c b/src/powder.c index 7dd1ad8..e697f24 100644 --- a/src/powder.c +++ b/src/powder.c @@ -1463,6 +1463,12 @@ void update_particles_i(pixel *vid, int start, int inc) pGravX = ptypes[t].gravity * ((float)(x - XCNTR) / pGravD); pGravY = ptypes[t].gravity * ((float)(y - YCNTR) / pGravD); } + //Get some gravity from the gravity map + if(!(ptypes[t].properties & TYPE_SOLID)) + { + pGravX += gravx[y/CELL][x/CELL]; + pGravY += gravy[y/CELL][x/CELL]; + } //velocity updates for the particle parts[i].vx *= ptypes[t].loss; parts[i].vy *= ptypes[t].loss; |
