fix: precise minimap visibility — waypoint id + contact markers, not all coords (playtest round 2)
linux / build (push) Canceled after 11m35s
linux / build (push) Canceled after 11m35s
This commit is contained in:
+12
-7
@@ -177,23 +177,28 @@ 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 while
|
||||
// a waypoint (BLIP_COORD) or a mission contact marker (BLIP_CONTACT_POINT) is
|
||||
// set, so navigation is never hidden. Entity blips (BLIP_CAR/CHAR/OBJECT) don't
|
||||
// force it on: scripts leave persistent ones behind (mission targets, parked
|
||||
// mission vehicles), which kept the minimap on permanently.
|
||||
// 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.
|
||||
static bool
|
||||
HUD_RadarShouldBeVisible()
|
||||
{
|
||||
int32 i;
|
||||
sRadarTrace *pTrace;
|
||||
|
||||
#ifdef MENU_MAP
|
||||
if (CRadar::TargetMarkerId != -1)
|
||||
return true;
|
||||
#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_COORD
|
||||
|| pTrace->m_eBlipType == BLIP_CONTACT_POINT))
|
||||
&& pTrace->m_eBlipType == BLIP_CONTACT_POINT)
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user