mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-18 09:51:40 +00:00
type size correctness
This commit is contained in:
parent
cd159e1cc1
commit
9a30968c87
1 changed files with 3 additions and 3 deletions
|
@ -155,10 +155,10 @@ Mod_FindName (const char *name)
|
||||||
static model_t *
|
static model_t *
|
||||||
Mod_RealLoadModel (model_t *mod, qboolean crash, cache_allocator_t allocator)
|
Mod_RealLoadModel (model_t *mod, qboolean crash, cache_allocator_t allocator)
|
||||||
{
|
{
|
||||||
unsigned int *buf;
|
uint32_t *buf;
|
||||||
|
|
||||||
// load the file
|
// load the file
|
||||||
buf = (unsigned int *) QFS_LoadFile (mod->name, 0);
|
buf = (uint32_t *) QFS_LoadFile (mod->name, 0);
|
||||||
if (!buf) {
|
if (!buf) {
|
||||||
if (crash)
|
if (crash)
|
||||||
Sys_Error ("Mod_LoadModel: %s not found", mod->name);
|
Sys_Error ("Mod_LoadModel: %s not found", mod->name);
|
||||||
|
@ -181,7 +181,7 @@ Mod_RealLoadModel (model_t *mod, qboolean crash, cache_allocator_t allocator)
|
||||||
mod->needload = false;
|
mod->needload = false;
|
||||||
mod->hasfullbrights = false;
|
mod->hasfullbrights = false;
|
||||||
|
|
||||||
switch (LittleLong (*(unsigned int *) buf)) {
|
switch (LittleLong (*buf)) {
|
||||||
case IDHEADER_MDL: // Type 6: Quake 1 .mdl
|
case IDHEADER_MDL: // Type 6: Quake 1 .mdl
|
||||||
case HEADER_MDL16: // QF Type 6 extended for 16bit precision
|
case HEADER_MDL16: // QF Type 6 extended for 16bit precision
|
||||||
if (strequal (mod->name, "progs/grenade.mdl")) {
|
if (strequal (mod->name, "progs/grenade.mdl")) {
|
||||||
|
|
Loading…
Reference in a new issue