From 8be4f6c773c51f2cbb415d7a97017d974688b782 Mon Sep 17 00:00:00 2001 From: Steve Date: Thu, 8 Mar 2018 07:54:20 +0000 Subject: [PATCH] Show all direction markers on radar, instead of one single direction. --- src/world/radar.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/world/radar.c b/src/world/radar.c index 9a6023d..9d9adb2 100644 --- a/src/world/radar.c +++ b/src/world/radar.c @@ -128,19 +128,23 @@ static void initBlips(void) { enableMarker(e->type, M_MIA); } - else if (y > viewRect.y + viewRect.h) + + if (y > viewRect.y + viewRect.h) { enableMarker(e->type, M_MIA + (M_MAX)); } - else if (x < viewRect.x) + + if (x < viewRect.x) { enableMarker(e->type, M_MIA + (M_MAX * 2)); } - else if (x > viewRect.x + viewRect.w) + + if (x > viewRect.x + viewRect.w) { enableMarker(e->type, M_MIA + (M_MAX * 3)); } - else if (i < MAX_BLIPS) + + if (i < MAX_BLIPS) { blips[i++] = e; }