summaryrefslogtreecommitdiff
path: root/src/graphics.c
diff options
context:
space:
mode:
authorJacob1 <jfu614@gmail.com>2012-05-22 22:11:41 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-05-24 18:57:29 (GMT)
commit4da9a26502fa79f54330866671992498a6a6d289 (patch)
tree965048e346f252dd69b0388037191642433877db /src/graphics.c
parent8196d2a645d386b5c97134c446e959e5e50a345b (diff)
downloadpowder-4da9a26502fa79f54330866671992498a6a6d289.zip
powder-4da9a26502fa79f54330866671992498a6a6d289.tar.gz
remove lastx/lasty variables when OGLR is disabled
Conflicts: src/graphics.c
Diffstat (limited to 'src/graphics.c')
-rw-r--r--src/graphics.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/graphics.c b/src/graphics.c
index 0c4c965..c7611ff 100644
--- a/src/graphics.c
+++ b/src/graphics.c
@@ -1802,8 +1802,11 @@ void render_parts(pixel *vid)
ny = (int)(parts[i].y+0.5f);
fnx = parts[i].x;
fny = parts[i].y;
+#ifdef OGLR
flx = parts[i].lastX;
fly = parts[i].lastY;
+#endif
+
if(photons[ny][nx]&0xFF && !(ptypes[t].properties & TYPE_ENERGY) && t!=PT_STKM && t!=PT_STKM2 && t!=PT_FIGH)
continue;