]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add parenthesis
authorMario <mario@smbclan.net>
Mon, 29 Aug 2016 09:53:07 +0000 (19:53 +1000)
committerMario <mario@smbclan.net>
Mon, 29 Aug 2016 09:53:07 +0000 (19:53 +1000)
qcsrc/common/util.qc

index e0b501c258ad0453c78c1d8b67b61df392d4a162..22ee95ae3e60f88b01d4217b7361c752c23c4e38 100644 (file)
@@ -397,8 +397,8 @@ string fixPriorityList(string order, float from, float to, float subtract, float
                n = tokenize_console(neworder);
                for(w = to; w >= from; --w)
                {
-                       float wflags = Weapons_from(w).spawnflags;
-                       if(wflags & WEP_FLAG_HIDDEN && wflags & WEP_FLAG_MUTATORBLOCKED && !(wflags & WEP_FLAG_NORMAL))
+                       int wflags = Weapons_from(w).spawnflags;
+                       if((wflags & WEP_FLAG_HIDDEN) && (wflags & WEP_FLAG_MUTATORBLOCKED) && !(wflags & WEP_FLAG_NORMAL))
                                continue;
                        for(i = 0; i < n; ++i)
                                if(stof(argv(i)) == w)