From 9b0e33e6267762a0034a797064d77d6058e02a64 Mon Sep 17 00:00:00 2001 From: opencode Date: Tue, 1 Dec 2026 16:59:52 +0000 Subject: [PATCH] fix: minimap forced only by waypoint or an active mission, not idle blips (playtest round 3) --- src/renderer/Hud.cpp | 28 +++++++++------------------- 1 file changed, 9 insertions(+), 19 deletions(-) diff --git a/src/renderer/Hud.cpp b/src/renderer/Hud.cpp index cfead703..eeef585d 100644 --- a/src/renderer/Hud.cpp +++ b/src/renderer/Hud.cpp @@ -177,31 +177,21 @@ HUD_TrackMoney(int32 money) } // The minimap is a driving aid: it only shows while the player is in a vehicle, -// and F10 toggles that in-vehicle display on or off. It is forced on only by -// navigation aids: the user waypoint (CRadar::TargetMarkerId, MENU_MAP builds) -// or an in-use mission contact marker (BLIP_CONTACT_POINT). Other coordinate -// blips (save house, weapon, bomb, spray icons) are never cleared, so they must -// not force it on; entity blips behave the same, which is also why they don't -// count. +// and F10 toggles that in-vehicle display on or off. Two things force it on: a +// user waypoint (CRadar::TargetMarkerId, MENU_MAP builds) and an active mission +// (CTheScripts::IsPlayerOnAMission), so navigation is never hidden mid-job. +// Idle mission-giver/contact blips and facility icons (save, weapon, bomb, +// spray) do NOT force it on: they are never cleared by the game, so forcing on +// them would leave the minimap permanently visible. static bool HUD_RadarShouldBeVisible() { - int32 i; - sRadarTrace *pTrace; - #ifdef MENU_MAP if (CRadar::TargetMarkerId != -1) - return true; + return true; // user waypoint set #endif - - for (i = 0; i < NUMRADARBLIPS; i++) { - pTrace = &CRadar::ms_RadarTrace[i]; - if (pTrace->m_bInUse - && pTrace->m_eBlipDisplay != BLIP_DISPLAY_NEITHER - && pTrace->m_eBlipType == BLIP_CONTACT_POINT) - return true; - } - + if (CTheScripts::IsPlayerOnAMission()) + return true; // an active mission always keeps navigation up return ms_bRadarEnabled && FindPlayerVehicle() != nil; }