]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sbar.c
-Renamed two builtins of the new VM
[xonotic/darkplaces.git] / sbar.c
diff --git a/sbar.c b/sbar.c
index ec1870bdca0487c0c32914ca724b55292b80f4db..fad52b54a307e4a8ff769323327f7e4376757608 100644 (file)
--- a/sbar.c
+++ b/sbar.c
@@ -967,11 +967,11 @@ void Sbar_Draw (void)
                                {
                                        if (!(cl.items & (1 << i)))
                                                continue;
-                                       Sbar_DrawWeapon(i + 1, fade, (i == cl.stats[STAT_ACTIVEWEAPON]));
+                                       Sbar_DrawWeapon(i + 1, fade, ((1<<i) == cl.stats[STAT_ACTIVEWEAPON]));
                                }
                        
                                if((cl.items & (1<<12)))
-                                       Sbar_DrawWeapon(0, fade, (cl.stats[STAT_ACTIVEWEAPON] == 12));
+                                       Sbar_DrawWeapon(0, fade, (cl.stats[STAT_ACTIVEWEAPON] == (1<<12)));
                        }
 
                        //if (!cl.islocalgame)