From: Mario Date: Thu, 15 Aug 2019 08:53:07 +0000 (+1000) Subject: Add parenthesis to some bitflag checks X-Git-Tag: xonotic-v0.8.5~1390 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1cf26eb87f64684fbaf21afb70b893a6bebc02e2;p=xonotic%2Fxonotic-data.pk3dir.git Add parenthesis to some bitflag checks --- 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);