Add parenthesis to some bitflag checks master
authorMario <mario@smbclan.net>
Thu, 15 Aug 2019 08:53:07 +0000 (18:53 +1000)
committerMario <mario@smbclan.net>
Thu, 15 Aug 2019 08:53:07 +0000 (18:53 +1000)
qcsrc/common/minigames/cl_minigames_hud.qc
qcsrc/common/mutators/mutator/waypoints/waypointsprites.qc

index 1608f47..fd9e394 100644 (file)
@@ -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);
                }
 
index 4192185..a9e1c5f 100644 (file)
@@ -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);