// must match NUMCROSSHAIRS in r_crosshairs.c
#define NUMCROSSHAIRS 6
-static qbyte *crosshairtexdata[NUMCROSSHAIRS] =
+static qbyte crosshairtexdata[NUMCROSSHAIRS][16*16] =
{
+ {
"................"
"................"
"................"
"................"
"................"
"................"
- ,
+ },
+ {
"................"
"................"
"................"
"................"
"................"
"................"
- ,
+ },
+ {
"................"
".......77......."
".......77......."
".......77......."
".......77......."
"................"
- ,
+ },
+ {
"................"
"................"
"................"
"........7......."
"........7......."
"................"
- ,
+ },
+ {
"................"
"................"
"................"
"................"
"................"
"................"
- ,
+ },
+ {
"................"
"................"
"................"
"................"
"................"
"................"
+ }
};
static rtexture_t *draw_generatecrosshair(int num)
return &video->cpif;
}
- crc = CRC_Block(path, strlen(path));
+ crc = CRC_Block((qbyte *)path, strlen(path));
hashkey = ((crc >> 8) ^ crc) % CACHEPICHASHSIZE;
for (pic = cachepichash[hashkey];pic;pic = pic->chain)
if (!strcmp (path, pic->name))
int crc, hashkey;
cachepic_t *pic;
- crc = CRC_Block(picname, strlen(picname));
+ crc = CRC_Block((qbyte *)picname, strlen(picname));
hashkey = ((crc >> 8) ^ crc) % CACHEPICHASHSIZE;
for (pic = cachepichash[hashkey];pic;pic = pic->chain)
if (!strcmp (picname, pic->name))
int hashkey;
cachepic_t *pic;
// this doesn't really free the pic, but does free it's texture
- crc = CRC_Block(picname, strlen(picname));
+ crc = CRC_Block((qbyte *)picname, strlen(picname));
hashkey = ((crc >> 8) ^ crc) % CACHEPICHASHSIZE;
for (pic = cachepichash[hashkey];pic;pic = pic->chain)
{