From 1cf26eb87f64684fbaf21afb70b893a6bebc02e2 Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 15 Aug 2019 18:53:07 +1000 Subject: [PATCH] Add parenthesis to some bitflag checks --- qcsrc/common/minigames/cl_minigames_hud.qc | 2 +- qcsrc/common/mutators/mutator/waypoints/waypointsprites.qc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/qcsrc/common/minigames/cl_minigames_hud.qc b/qcsrc/common/minigames/cl_minigames_hud.qc index 1608f471d..fd9e3941e 100644 --- a/qcsrc/common/minigames/cl_minigames_hud.qc +++ b/qcsrc/common/minigames/cl_minigames_hud.qc @@ -219,7 +219,7 @@ bool HUD_MinigameMenu_Click_ExpandCollapse(entity this) { for ( e = HUD_MinigameMenu_entries; e != NULL; e = e.list_next ) { - if ( e.flags & 2 && e.origin_x == this.origin_x) + if ( (e.flags & 2) && e.origin_x == this.origin_x) HUD_MinigameMenu_Click(e); } diff --git a/qcsrc/common/mutators/mutator/waypoints/waypointsprites.qc b/qcsrc/common/mutators/mutator/waypoints/waypointsprites.qc index 4192185dc..a9e1c5f57 100644 --- a/qcsrc/common/mutators/mutator/waypoints/waypointsprites.qc +++ b/qcsrc/common/mutators/mutator/waypoints/waypointsprites.qc @@ -485,7 +485,7 @@ void Draw_WaypointSprite(entity this) if (autocvar_cl_hidewaypoints >= 2) return; - if (this.hideflags & 1 && autocvar_cl_hidewaypoints) + if ((this.hideflags & 1) && autocvar_cl_hidewaypoints) return; // fixed waypoint InterpolateOrigin_Do(this); -- 2.39.2