X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fmenu%2Fxonotic%2Fweaponslist.c;h=ad4071060f99ec53c97359ed2f04ebd6bb23556e;hb=3b2bc1bdee04f4c454279bf14ac8ed6b37c6ddb5;hp=6790befe122be32a5159e5732fa2615efc5d6daa;hpb=55d3273e61152efe4244561d71c313512c20c20d;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/menu/xonotic/weaponslist.c b/qcsrc/menu/xonotic/weaponslist.c index 6790befe1..ad4071060 100644 --- a/qcsrc/menu/xonotic/weaponslist.c +++ b/qcsrc/menu/xonotic/weaponslist.c @@ -68,13 +68,13 @@ float XonoticWeaponsList_mouseDrag(entity me, vector pos) float f, i; i = me.selectedItem; f = SUPER(XonoticWeaponsList).mouseDrag(me, pos); - + if(me.pressed != 1) // don't change priority if the person is just scrolling { if(me.selectedItem != i) cvar_set("cl_weaponpriority", swapInPriorityList(cvar_string("cl_weaponpriority"), me.selectedItem, i)); } - + return f; } string XonoticWeaponsList_toString(entity me)