X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fweapons%2Fall.qc;fp=qcsrc%2Fcommon%2Fweapons%2Fall.qc;h=e97de364bbab9d96a011e55151de1c59c60eb5dc;hb=eba5226174da87c85d867b7a580ae761330f6767;hp=11ac0641a2c18be823715cd6c17df3d8f975bbb3;hpb=bfa3addf92e4eaabf10ed919dfc0c69d9a583e33;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/weapons/all.qc b/qcsrc/common/weapons/all.qc index 11ac0641a..e97de364b 100644 --- a/qcsrc/common/weapons/all.qc +++ b/qcsrc/common/weapons/all.qc @@ -61,11 +61,11 @@ WepSet _WepSet_FromWeapon(int a) if (a >= 24) { a -= 24; - return '0 0 1' * (2 ** a); + return '0 0 1' * BIT(a); } - return '0 1 0' * (2 ** a); + return '0 1 0' * BIT(a); } - return '1 0 0' * (2 ** a); + return '1 0 0' * BIT(a); } #ifdef SVQC void WriteWepSet(float dst, WepSet w)