]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add parenthesis to some bitflag checks
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 1608f471da24f10c4e09e32bcb8a8e1ef0345e71..fd9e3941e1285daafce81122fecfd8763a29b703 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 4192185dced0bd240245c72ba880b4d4016b2780..a9e1c5f57dd2996c7f5c6cf79b365cd11de84d60 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);