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:
parent
892e7c93fc
commit
367e77fb59
1 changed files with 2 additions and 2 deletions
|
@ -1979,7 +1979,7 @@ void maprender(void)
|
||||||
if (graphics.flipmode) temp += 3;
|
if (graphics.flipmode) temp += 3;
|
||||||
graphics.drawtile(40 + 3 + (map.teleporters[i].x * 12), 22 + (map.teleporters[i].y * 9), temp);
|
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);
|
int temp = 1126 + (int) map.isexplored(map.teleporters[i].x, map.teleporters[i].y);
|
||||||
if (graphics.flipmode) temp += 3;
|
if (graphics.flipmode) temp += 3;
|
||||||
|
@ -2530,7 +2530,7 @@ void teleporterrender(void)
|
||||||
if (graphics.flipmode) temp += 3;
|
if (graphics.flipmode) temp += 3;
|
||||||
graphics.drawtile(40 + 3 + (map.teleporters[i].x * 12), 22 + (map.teleporters[i].y * 9), temp);
|
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);
|
temp = 1126 + (int) map.isexplored(map.teleporters[i].x, map.teleporters[i].y);
|
||||||
if (graphics.flipmode) temp += 3;
|
if (graphics.flipmode) temp += 3;
|
||||||
|
|
Loading…
Reference in a new issue