SEND/READENTITY_ANGLE: use WriteAngle()/readangle()

This commit is contained in:
Marco Cawthorne 2024-03-04 19:37:51 -08:00
parent 9c66c2c5f9
commit f0034cb03a
Signed by: eukara
GPG Key ID: CE2032F0A2882A22
2 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ var bool g_cheats = false;
#define READENTITY_ANGLE(field, changedflag) {\ #define READENTITY_ANGLE(field, changedflag) {\
if (flChanged & changedflag) {\ if (flChanged & changedflag) {\
field = readshort() / (32767 / 360);\ field = readangle();\
PRINTFLAG(changedflag); \ PRINTFLAG(changedflag); \
}\ }\
} }

View File

@ -75,7 +75,7 @@
#define SENDENTITY_ANGLE(field, changedflag) {\ #define SENDENTITY_ANGLE(field, changedflag) {\
if (flChanged & changedflag)\ if (flChanged & changedflag)\
WriteShort(MSG_ENTITY, field * 32767 / 360);\ WriteAngle(MSG_ENTITY, field);\
} }
#define SENDENTITY_ENTITY(field, changedflag) {\ #define SENDENTITY_ENTITY(field, changedflag) {\