fix: minimap forced only by waypoint or an active mission, not idle blips (playtest round 3)
linux / build (push) Successful in 27m27s
linux / build (push) Successful in 27m27s
This commit is contained in:
+9
-19
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user