Commit e1cff67
authored
Fix radar_map HUD component freezing blips (#4852)
#### Summary
Fix `setPlayerHudComponentVisible("radar_map", false)` freezing the
blips and the north indicator.
#4331 patches `CRadar::DrawMap` to hide the map, but that function also
runs state updates the rest of the radar depends on. Skipping it freezes
the blips and the N marker.
Patching `CRadar::DrawRadarMap` (the inner draw call) instead hides the
map and leaves the state updates running.
#### Motivation
Fixes #4849
#### Test plan
Tested with the repro from #4849
#### Checklist
- [x] Your code should follow the [coding
guidelines](https://wiki.multitheftauto.com/index.php?title=Coding_guidelines).
- [x] Smaller pull requests are easier to review. If your pull request
is beefy, your pull request should be reviewable commit-by-commit.1 parent 5151689 commit e1cff67
2 files changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
| 133 | + | |
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | | - | |
| 52 | + | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
0 commit comments