From a25198d913d28a2f9b3a86af7fd972fcf72fe1f3 Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Sat, 29 Oct 2016 16:59:21 +0000 Subject: [PATCH] Engine: Add #ifdef USE_OPENGL forgotten in r5024 that causes an OOB access in scansector() and glitchy mirrors with USE_OPENGL=0. git-svn-id: https://svn.eduke32.com/eduke32@5917 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/engine.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/polymer/eduke32/build/src/engine.c b/polymer/eduke32/build/src/engine.c index 4ca105620..1148e2624 100644 --- a/polymer/eduke32/build/src/engine.c +++ b/polymer/eduke32/build/src/engine.c @@ -7977,6 +7977,7 @@ int32_t drawrooms(int32_t daposx, int32_t daposy, int32_t daposz, return 0; } # endif +#endif // Update starting sector number (common to classic and Polymost). // ADJUST_GLOBALCURSECTNUM. @@ -7994,6 +7995,7 @@ int32_t drawrooms(int32_t daposx, int32_t daposy, int32_t daposz, return 0; } +#ifdef USE_OPENGL //============================================================================= //POLYMOST BEGINS polymost_drawrooms();