int num;
unsigned int crc;
void *buf;
+ fs_offset_t filesize;
mod->used = true;
{
if (checkdisk && mod->loaded)
Con_DPrintf("checking model %s\n", mod->name);
- buf = FS_LoadFile (mod->name, tempmempool, false);
+ buf = FS_LoadFile (mod->name, tempmempool, false, &filesize);
if (buf)
{
- crc = CRC_Block((unsigned char *)buf, fs_filesize);
+ crc = CRC_Block((unsigned char *)buf, filesize);
if (mod->crc != crc)
mod->loaded = false;
}
if (buf)
{
- char *bufend = (char *)buf + fs_filesize;
+ char *bufend = (char *)buf + filesize;
num = LittleLong(*((int *)buf));
// call the apropriate loader
loadmodel = mod;
return mod;
}
- Host_Error ("Mod_FindName: ran out of models\n");
+ Host_Error ("Mod_FindName: ran out of models");
return NULL;
}
// 6 multiply, 9 subtract
VectorSubtract(v1, v0, v10);
VectorSubtract(v2, v0, v20);
- normal3f[0] = v10[1] * v20[2] - v10[2] * v20[1];
- normal3f[1] = v10[2] * v20[0] - v10[0] * v20[2];
- normal3f[2] = v10[0] * v20[1] - v10[1] * v20[0];
+ normal3f[0] = v20[1] * v10[2] - v20[2] * v10[1];
+ normal3f[1] = v20[2] * v10[0] - v20[0] * v10[2];
+ normal3f[2] = v20[0] * v10[1] - v20[1] * v10[0];
// 12 multiply, 10 subtract
tc10[1] = tc1[1] - tc0[1];
tc20[1] = tc2[1] - tc0[1];
*/
memset(tagsets, 0, sizeof(tagsets));
memset(word, 0, sizeof(word));
- for (i = 0;i < MAX_SKINS && (data = text = (char *)FS_LoadFile(va("%s_%i.skin", loadmodel->name, i), tempmempool, true));i++)
+ for (i = 0;i < MAX_SKINS && (data = text = (char *)FS_LoadFile(va("%s_%i.skin", loadmodel->name, i), tempmempool, true, NULL));i++)
{
numtags = 0;