mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
Fix gravity line edgeguides
This commit is contained in:
committed by
Misa Elizabeth Kai
parent
d84ce6b2e8
commit
5b2fbeb6b4
@@ -762,17 +762,17 @@ static void draw_edgeguides(void)
|
|||||||
}
|
}
|
||||||
if (entity->rx == POS_MOD(ed.levx - 1, cl.mapwidth)
|
if (entity->rx == POS_MOD(ed.levx - 1, cl.mapwidth)
|
||||||
// It's to the left...
|
// It's to the left...
|
||||||
&& x + w >= 312)
|
&& x + w >= SCREEN_WIDTH_PIXELS - 8)
|
||||||
{
|
{
|
||||||
// And touching the right edge!
|
// And touching the right edge!
|
||||||
graphics.fill_rect(x, entity->y * 8, 2, 8, green);
|
graphics.fill_rect(0, entity->y * 8, 2, 8, green);
|
||||||
}
|
}
|
||||||
else if (entity->rx == POS_MOD(ed.levx + 1, cl.mapwidth)
|
else if (entity->rx == POS_MOD(ed.levx + 1, cl.mapwidth)
|
||||||
// It's to the right...
|
// It's to the right...
|
||||||
&& x <= 0)
|
&& x <= 0)
|
||||||
{
|
{
|
||||||
// And touching the left edge!
|
// And touching the left edge!
|
||||||
graphics.fill_rect(x + w - 2, entity->y * 8, 2, 8, green);
|
graphics.fill_rect(SCREEN_WIDTH_PIXELS - 2, entity->y * 8, 2, 8, green);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user