mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-02-17 11:30:09 +00:00
fixup to guards
This commit is contained in:
parent
f3c35de400
commit
d0823b70ec
@ -2080,7 +2080,9 @@ void celldrawer::draw_wall_full() {
|
|||||||
#if MAXMDIM >= 4
|
#if MAXMDIM >= 4
|
||||||
// draw the ceiling
|
// draw the ceiling
|
||||||
if(WDIM == 2 && GDIM == 3) {
|
if(WDIM == 2 && GDIM == 3) {
|
||||||
|
#if CAP_GL
|
||||||
draw_ceiling();
|
draw_ceiling();
|
||||||
|
#endif
|
||||||
|
|
||||||
int rd = rosedist(c);
|
int rd = rosedist(c);
|
||||||
if(rd) {
|
if(rd) {
|
||||||
|
@ -209,7 +209,7 @@ EX namespace netgen {
|
|||||||
void blackline(vec v1, vec v2, color_t col = 0x000000FF) {
|
void blackline(vec v1, vec v2, color_t col = 0x000000FF) {
|
||||||
#if CAP_SDLGFX
|
#if CAP_SDLGFX
|
||||||
aalineColor(s, int(v1.x), int(v1.y), int(v2.x), int(v2.y), col);
|
aalineColor(s, int(v1.x), int(v1.y), int(v2.x), int(v2.y), col);
|
||||||
#elseif CAP_SDL
|
#elif CAP_SDL
|
||||||
SDL_LockSurface(s);
|
SDL_LockSurface(s);
|
||||||
int len = abs(v1.x-v2.x) + abs(v1.y-v2.y);
|
int len = abs(v1.x-v2.x) + abs(v1.y-v2.y);
|
||||||
for(int i=0; i<=len; i++)
|
for(int i=0; i<=len; i++)
|
||||||
@ -227,7 +227,7 @@ EX namespace netgen {
|
|||||||
polyy[1] = int(v2.y);
|
polyy[1] = int(v2.y);
|
||||||
polyy[2] = int(v3.y);
|
polyy[2] = int(v3.y);
|
||||||
filledPolygonColorI(s, polyx, polyy, 3, col);
|
filledPolygonColorI(s, polyx, polyy, 3, col);
|
||||||
#elseif CAP_SDL
|
#elif CAP_SDL
|
||||||
SDL_LockSurface(s);
|
SDL_LockSurface(s);
|
||||||
int len = abs(v1.x-v2.x) + abs(v1.y-v2.y);
|
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)
|
for(int i=0; i<=len; i++) for(int j=0; j<=len; j++) if(i+j <= len)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user