From a09c3f95c9c2d3c7015edc5171b12779b9ea3081 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Sun, 9 Aug 2015 16:40:19 +0200 Subject: [PATCH] Fix minimap rendering. --- src/map.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/map.cpp b/src/map.cpp index e7d548f..8c3a765 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -317,15 +317,15 @@ void showMap(int centerX, int centerY) { for (int x = 0 ; x < 64 ; x++) { - color = -1; + color = graphics.black; if (map.data[x1 + x][y1 + y] == MAP_AIR) { - color = -1; + color = graphics.black; } else if (map.data[x1 + x][y1 + y] == MAP_WATER) { - color = -1; + color = graphics.black; } else if (map.data[x1 + x][y1 + y] == MAP_SLIME) { @@ -337,7 +337,7 @@ void showMap(int centerX, int centerY) } else if (map.data[x1 + x][y1 + y] >= MAP_DECORATION) { - color = -1; + color = graphics.black; if (map.data[x1 + x][y1 + y - 1] == MAP_WATER) { @@ -353,7 +353,7 @@ void showMap(int centerX, int centerY) color = graphics.darkGreen; } - if (color > -1) + if (color != graphics.black) { graphics.drawRect(x * 5, y * 5, 5, 5, color, panel); } -- 2.39.2