diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-05-12 00:35:55 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-05-12 00:35:55 (GMT) |
| commit | d69fc052fabf38b6691970c38abe4c8525eff3e8 (patch) | |
| tree | 857691fe7d792a8dde25167e134ed3e12ce01f9f /src/powder.c | |
| parent | d7fa0b139e5a91c3b1d406e63cae4a6ad79d0cd0 (diff) | |
| download | powder-d69fc052fabf38b6691970c38abe4c8525eff3e8.zip powder-d69fc052fabf38b6691970c38abe4c8525eff3e8.tar.gz | |
Fancy motion blur for OpenGL, fix a lot of dialogues in OpenGL, fix gravity lensing in OpenGL, ensure Phot and Neut are PMODE_ADD, not FLAT
Diffstat (limited to 'src/powder.c')
| -rw-r--r-- | src/powder.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/powder.c b/src/powder.c index 3d5ed42..4724b7a 100644 --- a/src/powder.c +++ b/src/powder.c @@ -888,6 +888,8 @@ inline int create_part(int p, int x, int y, int tv)//the function for creating a { parts[i].x = (float)x; parts[i].y = (float)y; + parts[i].lastX = (float)x; + parts[i].lastY = (float)y; parts[i].type = t; parts[i].vx = 0; parts[i].vy = 0; @@ -1031,6 +1033,8 @@ inline int create_part(int p, int x, int y, int tv)//the function for creating a { parts[i].x = (float)x; parts[i].y = (float)y; + parts[i].lastX = (float)x; + parts[i].lastY = (float)y; parts[i].type = PT_STKM; parts[i].vx = 0; parts[i].vy = 0; @@ -1053,6 +1057,8 @@ inline int create_part(int p, int x, int y, int tv)//the function for creating a { parts[i].x = (float)x; parts[i].y = (float)y; + parts[i].lastX = (float)x; + parts[i].lastY = (float)y; parts[i].type = PT_STKM2; parts[i].vx = 0; parts[i].vy = 0; @@ -1077,6 +1083,8 @@ inline int create_part(int p, int x, int y, int tv)//the function for creating a { parts[i].x = (float)x; parts[i].y = (float)y; + parts[i].lastX = (float)x; + parts[i].lastY = (float)y; parts[i].type = PT_FIGH; parts[i].vx = 0; parts[i].vy = 0; @@ -1721,6 +1729,8 @@ void update_particles_i(pixel *vid, int start, int inc) if (parts[i].type) { t = parts[i].type; + parts[i].lastX = parts[i].x; + parts[i].lastY = parts[i].y; if (t<0 || t>=PT_NUM) { kill_part(i); |
