]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - common.h
Borland C++ compile fix - works/compiles now.
[xonotic/darkplaces.git] / common.h
index 8f1719316d59123617d8064e02e964da38ab1f0c..152112cbf6030bac6d9acffbd68e1165097f3102 100644 (file)
--- a/common.h
+++ b/common.h
@@ -113,6 +113,7 @@ void MSG_WriteFloat (sizebuf_t *sb, float f);
 void MSG_WriteString (sizebuf_t *sb, char *s);
 void MSG_WriteCoord (sizebuf_t *sb, float f);
 void MSG_WriteAngle (sizebuf_t *sb, float f);
+void MSG_WritePreciseAngle (sizebuf_t *sb, float f);
 
 extern int                     msg_readcount;
 extern qboolean        msg_badread;            // set if a read goes beyond end of message
@@ -133,7 +134,8 @@ char *MSG_ReadString (void);
 float MSG_ReadCoord (void);
 //float MSG_ReadAngle (void);
 
-#define MSG_ReadAngle() (dpprotocol ? MSG_ReadShort() * (360.0f / 65536.0f) : MSG_ReadByte() * (360.0f / 256.0f))
+#define MSG_ReadAngle() (MSG_ReadByte() * (360.0f / 256.0f))
+#define MSG_ReadPreciseAngle() (MSG_ReadShort() * (360.0f / 65536.0f))
 
 extern qboolean dpprotocol;