]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - mathlib.c
renamed byte to qbyte throughout engine to eliminate a mingw conflict
[xonotic/darkplaces.git] / mathlib.c
index 8f73d5eab2476072ebb21ede62645bfab358a93d..d45bb3562127506fec23c9f4711a45c185dde39a 100644 (file)
--- a/mathlib.c
+++ b/mathlib.c
@@ -114,7 +114,7 @@ float m_bytenormals[NUMVERTEXNORMALS][3] =
 {-0.587785, -0.425325, -0.688191}, {-0.688191, -0.587785, -0.425325}, 
 };
 
-byte NormalToByte(vec3_t n)
+qbyte NormalToByte(vec3_t n)
 {
        int i, best;
        float bestdistance, distance;
@@ -134,7 +134,7 @@ byte NormalToByte(vec3_t n)
 }
 
 // note: uses byte partly to force unsigned for the validity check
-void ByteToNormal(byte num, vec3_t n)
+void ByteToNormal(qbyte num, vec3_t n)
 {
        if (num < NUMVERTEXNORMALS)
                VectorCopy(m_bytenormals[num], n);