From: Rudolf Polzer Date: Thu, 19 Dec 2013 12:49:22 +0000 (+0100) Subject: up sendflags to 3 bytes in csqcmodel. Fixes accidentally double-sent X-Git-Tag: xonotic-v0.8.0~253 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c636881bbdcb86e9562b0d03f5fc2f2cf297c854;p=xonotic%2Fxonotic-data.pk3dir.git up sendflags to 3 bytes in csqcmodel. Fixes accidentally double-sent data. --- diff --git a/qcsrc/csqcmodellib/cl_model.qc b/qcsrc/csqcmodellib/cl_model.qc index 302928522..e04b92ecc 100644 --- a/qcsrc/csqcmodellib/cl_model.qc +++ b/qcsrc/csqcmodellib/cl_model.qc @@ -203,7 +203,7 @@ void CSQCModel_Draw() void CSQCModel_Read(float isnew) { float sf; - sf = ReadShort(); + sf = ReadInt24_t(); // some nice flags for CSQCMODEL_IF and the hooks local noref float isplayer = (self.entnum >= 1 && self.entnum <= maxclients); diff --git a/qcsrc/csqcmodellib/common.qh b/qcsrc/csqcmodellib/common.qh index 4cf60174d..2c13404f5 100644 --- a/qcsrc/csqcmodellib/common.qh +++ b/qcsrc/csqcmodellib/common.qh @@ -50,15 +50,15 @@ IN THE SOFTWARE.\ .float frame2time; .float lerpfrac; -#define CSQCMODEL_PROPERTY_FRAME 32768 -#define CSQCMODEL_PROPERTY_TELEPORTED 16384 // the "teleport bit" cancelling interpolation -#define CSQCMODEL_PROPERTY_MODELINDEX 8192 -#define CSQCMODEL_PROPERTY_ORIGIN 4096 -#define CSQCMODEL_PROPERTY_YAW 2048 -#define CSQCMODEL_PROPERTY_PITCHROLL 1024 -#define CSQCMODEL_PROPERTY_FRAME2 512 -#define CSQCMODEL_PROPERTY_LERPFRAC 256 -#define CSQCMODEL_PROPERTY_SIZE 128 +#define CSQCMODEL_PROPERTY_FRAME 8388608 +#define CSQCMODEL_PROPERTY_TELEPORTED 4194304 // the "teleport bit" cancelling interpolation +#define CSQCMODEL_PROPERTY_MODELINDEX 2097152 +#define CSQCMODEL_PROPERTY_ORIGIN 1048576 +#define CSQCMODEL_PROPERTY_YAW 524288 +#define CSQCMODEL_PROPERTY_PITCHROLL 262144 +#define CSQCMODEL_PROPERTY_FRAME2 131072 +#define CSQCMODEL_PROPERTY_LERPFRAC 65536 +#define CSQCMODEL_PROPERTY_SIZE 32768 #define ALLPROPERTIES_COMMON \ CSQCMODEL_PROPERTY(CSQCMODEL_PROPERTY_FRAME, float, ReadByte, WriteByte, frame) \ diff --git a/qcsrc/csqcmodellib/sv_model.qc b/qcsrc/csqcmodellib/sv_model.qc index e0098b487..ef47a54da 100644 --- a/qcsrc/csqcmodellib/sv_model.qc +++ b/qcsrc/csqcmodellib/sv_model.qc @@ -34,7 +34,7 @@ float CSQCModel_Send(entity to, float sf) unused_float = isnolocalplayer; WriteByte(MSG_ENTITY, ENT_CLIENT_MODEL); - WriteShort(MSG_ENTITY, sf); + WriteInt24_t(MSG_ENTITY, sf); #define CSQCMODEL_IF(cond) if(cond) { #define CSQCMODEL_ENDIF }