]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - crypto.c
implemented r_transparent_alphatocoverage 2 which promotes alphablend if
[xonotic/darkplaces.git] / crypto.c
index 7ff8ff48758c7a274c4d3752deacce9667d91a46..6a40df4c7233b4c259c9e1c14ed839cc3caa486e 100644 (file)
--- a/crypto.c
+++ b/crypto.c
@@ -1353,7 +1353,7 @@ const void *Crypto_EncryptPacket(crypto_t *crypto, const void *data_src, size_t
                        memcpy(((unsigned char *) data_dst) + 16, (unsigned char *) data_src, len_src);
 
                        // handle the "avoid" conditions:
-                       i = BuffBigLong(data_dst);
+                       i = BuffBigLong((unsigned char *) data_dst);
                        if(
                                (i == (int)0xFFFFFFFF) // avoid QW control packet
                                ||
@@ -1376,7 +1376,7 @@ const void *Crypto_DecryptPacket(crypto_t *crypto, const void *data_src, size_t
        int i;
 
        // silently handle non-crypto packets
-       i = BuffBigLong(data_src);
+       i = BuffBigLong((unsigned char *) data_src);
        if(
                (i == (int)0xFFFFFFFF) // avoid QW control packet
                ||