From ff2bc57f227f6d867a5fc338a91a6320fa422af5 Mon Sep 17 00:00:00 2001 From: Brad Harding Date: Sat, 12 Oct 2024 20:22:23 +1100 Subject: [PATCH] Fix player path at map start before (or just after) player moves --- src/am_map.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/am_map.c b/src/am_map.c index f74bbc960..34d3a4e42 100644 --- a/src/am_map.c +++ b/src/am_map.c @@ -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++) { @@ -2279,7 +2279,7 @@ void AM_Drawer(void) else AM_DrawWalls(); - if (am_path) + if (am_path && numbreadcrumbs) AM_DrawPath(); if (things)