1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-23 01:59:43 +01:00

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.
This commit is contained in:
Misa 2021-03-25 20:37:42 -07:00 committed by Ethan Lee
parent 892e7c93fc
commit 367e77fb59

View file

@ -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;