diff options
| author | Jacob1 <jfu614@gmail.com> | 2012-05-22 22:11:41 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-05-24 18:57:29 (GMT) |
| commit | 4da9a26502fa79f54330866671992498a6a6d289 (patch) | |
| tree | 965048e346f252dd69b0388037191642433877db /src/powder.c | |
| parent | 8196d2a645d386b5c97134c446e959e5e50a345b (diff) | |
| download | powder-4da9a26502fa79f54330866671992498a6a6d289.zip powder-4da9a26502fa79f54330866671992498a6a6d289.tar.gz | |
remove lastx/lasty variables when OGLR is disabled
Conflicts:
src/graphics.c
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 700a6d5..3861248 100644 --- a/src/powder.c +++ b/src/powder.c @@ -892,8 +892,10 @@ 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; +#ifdef OGLR parts[i].lastX = (float)x; parts[i].lastY = (float)y; +#endif parts[i].type = t; parts[i].vx = 0; parts[i].vy = 0; @@ -1037,8 +1039,10 @@ 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; +#ifdef OGLR parts[i].lastX = (float)x; parts[i].lastY = (float)y; +#endif parts[i].type = PT_STKM; parts[i].vx = 0; parts[i].vy = 0; @@ -1061,8 +1065,10 @@ 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; +#ifdef OGLR parts[i].lastX = (float)x; parts[i].lastY = (float)y; +#endif parts[i].type = PT_STKM2; parts[i].vx = 0; parts[i].vy = 0; @@ -1087,8 +1093,10 @@ 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; +#ifdef OGLR parts[i].lastX = (float)x; parts[i].lastY = (float)y; +#endif parts[i].type = PT_FIGH; parts[i].vx = 0; parts[i].vy = 0; @@ -1733,8 +1741,10 @@ void update_particles_i(pixel *vid, int start, int inc) if (parts[i].type) { t = parts[i].type; +#ifdef OGLR parts[i].lastX = parts[i].x; parts[i].lastY = parts[i].y; +#endif if (t<0 || t>=PT_NUM) { kill_part(i); |
