From: Rudolf Polzer Date: Tue, 22 May 2012 07:59:19 +0000 (+0200) Subject: fix typo X-Git-Tag: xonotic-v0.7.0~314^2~6 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1e54e223e716c1ee6616ee742d7e3a5a9b5b848b;p=xonotic%2Fxonotic-data.pk3dir.git fix typo --- diff --git a/qcsrc/common/items.qh b/qcsrc/common/items.qh index 77465dc4f..33fa21f7e 100644 --- a/qcsrc/common/items.qh +++ b/qcsrc/common/items.qh @@ -109,8 +109,8 @@ float WEP_LAST; # define WEPSET_WRITE_E(dest,a) WriteInt24_t(dest, (a)._WS_weapons) # define WEPSET_WRITE_A(dest,a) WriteInt24_t(dest, _WS_##a) # define WEPSET_WRITE_W(dest,a) WriteInt24_t(dest, WEPSET_BIT(a)) -# define WEPSET_READ_E(dest,a) (a)._WS_weapons = ReadInt24_t() -# define WEPSET_READ_A(dest,a) (_WS_##a) = ReadInt24_t() +# define WEPSET_READ_E(a) (a)._WS_weapons = ReadInt24_t() +# define WEPSET_READ_A(a) (_WS_##a) = ReadInt24_t() # define WEPSET_OP1_EE(a,b,mergeop,x) ((a)._WS_weapons x (b)._WS_weapons) # define WEPSET_OP2_EE(a,b,mergeop,x,y) ((a)._WS_weapons x (b)._WS_weapons y (a)._WS_weapons) # define WEPSET_OP1_EA(a,b,mergeop,x) ((a)._WS_weapons x _WS_##b) @@ -140,8 +140,8 @@ float WEP_LAST; # define WEPSET_WRITE_E(dest,a) WriteInt24_t(dest, (a)._WS1_weapons); WriteInt24_t(dest, (a)._WS2_weapons) # define WEPSET_WRITE_A(dest,a) WriteInt24_t(dest, _WS1_##a); WriteInt24_t(dest, _WS2_##a) # define WEPSET_WRITE_W(dest,a) WriteInt24_t(dest, WEPSET_BIT1(a)); WriteInt24_t(dest, WEPSET_BIT2(a)) -# define WEPSET_READ_E(dest,a) (a)._WS1_weapons = ReadInt24_t(); (a)._WS2_weapons = ReadInt24_t() -# define WEPSET_READ_A(dest,a) (_WS1_##a) = ReadInt24_t(); (_WS2_##a) = ReadInt24_t() +# define WEPSET_READ_E(a) (a)._WS1_weapons = ReadInt24_t(); (a)._WS2_weapons = ReadInt24_t() +# define WEPSET_READ_A(a) (_WS1_##a) = ReadInt24_t(); (_WS2_##a) = ReadInt24_t() # define WEPSET_OP1_EE(a,b,mergeop,x) (((a)._WS1_weapons x (b)._WS1_weapons) mergeop ((a)._WS2_weapons x (b)._WS2_weapons)) # define WEPSET_OP2_EE(a,b,mergeop,x,y) (((a)._WS1_weapons x (b)._WS1_weapons y (a)._WS1_weapons) mergeop ((a)._WS2_weapons x (b)._WS2_weapons y (a)._WS2_weapons)) # define WEPSET_OP1_EA(a,b,mergeop,x) (((a)._WS1_weapons x _WS1_##b) mergeop ((a)._WS2_weapons x _WS2_##b))