]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
-Now the Nex weapon list works correctly again.
authorblack <black@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 11 Jan 2005 14:47:49 +0000 (14:47 +0000)
committerblack <black@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 11 Jan 2005 14:47:49 +0000 (14:47 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4911 d7cf8633-e32d-0410-b094-e92efae38249

sbar.c

diff --git a/sbar.c b/sbar.c
index 5634f9780e8b4ea11f89468edb55d0d02065062d..5e5ffd838aaaf6660fbf57257844868af36c75ad 100644 (file)
--- a/sbar.c
+++ b/sbar.c
@@ -959,10 +959,10 @@ void Sbar_Draw (void)
                                fade *= fade;
                                for (i = 0; i < 8;i++)
                                        if (cl.stats[STAT_ITEMS] & (1 << i))
-                                               Sbar_DrawWeapon(i + 1, fade, ((1<<i) == cl.stats[STAT_ACTIVEWEAPON]));
+                                               Sbar_DrawWeapon(i + 1, fade, (i + 2 == cl.stats[STAT_ACTIVEWEAPON]));
                        
                                if((cl.stats[STAT_ITEMS] & (1<<12)))
-                                       Sbar_DrawWeapon(0, fade, (cl.stats[STAT_ACTIVEWEAPON] == (1<<12)));
+                                       Sbar_DrawWeapon(0, fade, (cl.stats[STAT_ACTIVEWEAPON] == 1));
                        }
 
                        //if (!cl.islocalgame)