Skip to content

Commit

Permalink
Fix player path at map start before (or just after) player moves
Browse files Browse the repository at this point in the history
  • Loading branch information
bradharding committed Oct 12, 2024
1 parent 25ca6fa commit ff2bc57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/am_map.c
Original file line number Diff line number Diff line change
Expand Up @@ -2027,8 +2027,8 @@ static void AM_DrawMarks(const char *nums[])

static void AM_DrawPath(void)
{
mpoint_t end = { 0, 0 };
mpoint_t player = { viewx >> FRACTOMAPBITS, viewy >> FRACTOMAPBITS };
mpoint_t end = player;

for (int i = 1; i < numbreadcrumbs; i++)
{
Expand Down Expand Up @@ -2279,7 +2279,7 @@ void AM_Drawer(void)
else
AM_DrawWalls();

if (am_path)
if (am_path && numbreadcrumbs)
AM_DrawPath();

if (things)
Expand Down

0 comments on commit ff2bc57

Please sign in to comment.