From 367e77fb59be954f8b9f50eb0958a8301258a74b Mon Sep 17 00:00:00 2001 From: Misa Date: Thu, 25 Mar 2021 20:37:42 -0700 Subject: [PATCH] Fix targets (question marks) not showing up on minimap Followup to #635: I had misread the original '==0' comparisons as being truthy comparisons instead of being falsy comparisons. Whoops. --- desktop_version/src/Render.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/desktop_version/src/Render.cpp b/desktop_version/src/Render.cpp index c689ce0e..67e6ab87 100644 --- a/desktop_version/src/Render.cpp +++ b/desktop_version/src/Render.cpp @@ -1979,7 +1979,7 @@ void maprender(void) if (graphics.flipmode) temp += 3; graphics.drawtile(40 + 3 + (map.teleporters[i].x * 12), 22 + (map.teleporters[i].y * 9), temp); } - else if(map.showtargets && map.isexplored(map.teleporters[i].x, map.teleporters[i].y)) + else if(map.showtargets && !map.isexplored(map.teleporters[i].x, map.teleporters[i].y)) { int temp = 1126 + (int) map.isexplored(map.teleporters[i].x, map.teleporters[i].y); if (graphics.flipmode) temp += 3; @@ -2530,7 +2530,7 @@ void teleporterrender(void) if (graphics.flipmode) temp += 3; graphics.drawtile(40 + 3 + (map.teleporters[i].x * 12), 22 + (map.teleporters[i].y * 9), temp); } - else if(map.showtargets && map.isexplored(map.teleporters[i].x, map.teleporters[i].y)) + else if(map.showtargets && !map.isexplored(map.teleporters[i].x, map.teleporters[i].y)) { temp = 1126 + (int) map.isexplored(map.teleporters[i].x, map.teleporters[i].y); if (graphics.flipmode) temp += 3;