Skip to content

Commit 04a75f3

Browse files
committed
hud.cpp fix for radar vars
1 parent ae1e78d commit 04a75f3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/game/hud.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2899,7 +2899,7 @@ namespace hud
28992899
case 1:
29002900
{
29012901
int cm = cr+top;
2902-
if(!m_hard(game::gamemode, game::mutators) && radartype() == 3 && !hasinput(true) && (game::focus->state == CS_EDITING ? showeditradar >= 1 : chkcond(showradar, !game::tvmode() || (game::focus != game::player1 && radartype() == 3))))
2902+
if((!radardisabled || !m_hard(game::gamemode, game::mutators)) && radartype() == 3 && !hasinput(true) && (game::focus->state == CS_EDITING ? showeditradar >= 1 : chkcond(showradar, !game::tvmode() || (game::focus != game::player1 && radartype() == 3))))
29032903
cm += int(max(w, h)/2*radarcorner*2);
29042904
if(inventorydate)
29052905
cm += drawitemtextx(cx[i], cm, 0, TEXT_RIGHT_JUSTIFY, inventorydateskew, "super", fade*inventorydateblend, "%s", gettime(currenttime, inventorydateformat));
@@ -3202,7 +3202,7 @@ namespace hud
32023202
}
32033203
}
32043204
}
3205-
if(!m_hard(game::gamemode, game::mutators) && !hasinput(true) && (game::focus->state == CS_EDITING ? showeditradar >= 1 : chkcond(showradar, !game::tvmode() || (game::focus != game::player1 && radartype() == 3))))
3205+
if((!radardisabled || !m_hard(game::gamemode, game::mutators)) && !hasinput(true) && (game::focus->state == CS_EDITING ? showeditradar >= 1 : chkcond(showradar, !game::tvmode() || (game::focus != game::player1 && radartype() == 3))))
32063206
drawradar(w, h, fade);
32073207
}
32083208
drawspecborder(w, h, !gs_playing(game::gamestate) || game::player1->state == CS_SPECTATOR ? BORDER_SPEC : (game::player1->state == CS_WAITING ? BORDER_WAIT : (game::player1->state == CS_WAITING ? BORDER_EDIT : BORDER_PLAY)), top, bottom);

0 commit comments

Comments
 (0)