]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - crc.c
MAX_EDICTS has changed to 32768. Yes this is madness. Thanks to banshee for prompti...
[xonotic/darkplaces.git] / crc.c
diff --git a/crc.c b/crc.c
index 84dd8559fe595267981812d521a2c9db6698dd00..57f7d3af8829cc57e35aa5ce4d5fd9ba712230d4 100644 (file)
--- a/crc.c
+++ b/crc.c
@@ -70,13 +70,13 @@ void CRC_Init(unsigned short *crcvalue)
        *crcvalue = CRC_INIT_VALUE;
 }
 
-void CRC_ProcessByte(unsigned short *crcvalue, byte data)
+void CRC_ProcessByte(unsigned short *crcvalue, qbyte data)
 {
        *crcvalue = (*crcvalue << 8) ^ crctable[(*crcvalue >> 8) ^ data];
 }
 
 // LordHavoc: added for speed reasons
-void CRC_ProcessBytes(unsigned short *crcvalue, byte *data, int size)
+void CRC_ProcessBytes(unsigned short *crcvalue, qbyte *data, int size)
 {
        unsigned short crc;
        crc = *crcvalue;
@@ -91,10 +91,11 @@ unsigned short CRC_Value(unsigned short crcvalue)
 }
 
 // LordHavoc: further speed and usability improvement
-unsigned short CRC_Block(byte *data, int size)
+unsigned short CRC_Block(qbyte *data, int size)
 {
        unsigned short crc = CRC_INIT_VALUE;
        while (size--)
                crc = (crc << 8) ^ crctable[(crc >> 8) ^ (*data++)];
        return crc ^ CRC_XOR_VALUE;
 }
+