From d0823b70ecd2224329d03ce924bdb9909fdf2710 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Fri, 3 Jul 2020 15:17:59 +0200 Subject: [PATCH] fixup to guards --- celldrawer.cpp | 2 ++ netgen.cpp | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/celldrawer.cpp b/celldrawer.cpp index 34c18bb2..98106362 100644 --- a/celldrawer.cpp +++ b/celldrawer.cpp @@ -2080,7 +2080,9 @@ void celldrawer::draw_wall_full() { #if MAXMDIM >= 4 // draw the ceiling if(WDIM == 2 && GDIM == 3) { + #if CAP_GL draw_ceiling(); + #endif int rd = rosedist(c); if(rd) { diff --git a/netgen.cpp b/netgen.cpp index 95ead891..e4fc51f4 100644 --- a/netgen.cpp +++ b/netgen.cpp @@ -209,7 +209,7 @@ EX namespace netgen { void blackline(vec v1, vec v2, color_t col = 0x000000FF) { #if CAP_SDLGFX aalineColor(s, int(v1.x), int(v1.y), int(v2.x), int(v2.y), col); -#elseif CAP_SDL +#elif CAP_SDL SDL_LockSurface(s); int len = abs(v1.x-v2.x) + abs(v1.y-v2.y); for(int i=0; i<=len; i++) @@ -227,7 +227,7 @@ EX namespace netgen { polyy[1] = int(v2.y); polyy[2] = int(v3.y); filledPolygonColorI(s, polyx, polyy, 3, col); -#elseif CAP_SDL +#elif CAP_SDL SDL_LockSurface(s); int len = abs(v1.x-v2.x) + abs(v1.y-v2.y); for(int i=0; i<=len; i++) for(int j=0; j<=len; j++) if(i+j <= len)