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/save.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/save.c')
| -rw-r--r-- | src/save.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1347,8 +1347,10 @@ int parse_save_OPS(void *save, int size, int replace, int x0, int y0, unsigned c partsptr[newIndex].tmp2 = partsData[i++]; } +#ifdef OGLR partsptr[newIndex].lastX = partsptr[newIndex].x - partsptr[newIndex].vx; partsptr[newIndex].lastY = partsptr[newIndex].y - partsptr[newIndex].vy; +#endif if ((player.spwn == 1 && partsptr[newIndex].type==PT_STKM) || (player2.spwn == 1 && partsptr[newIndex].type==PT_STKM2)) { @@ -2027,8 +2029,10 @@ int parse_save_PSv(void *save, int size, int replace, int x0, int y0, unsigned c { parts[i].vx = (d[p++]-127.0f)/16.0f; parts[i].vy = (d[p++]-127.0f)/16.0f; +#ifdef OGLR parts[i].lastX = parts[i].x - parts[i].vx; parts[i].lastY = parts[i].y - parts[i].vy; +#endif } else p += 2; |
