mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 22:31:05 +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 *
|
||||
Mod_RealLoadModel (model_t *mod, qboolean crash, cache_allocator_t allocator)
|
||||
{
|
||||
unsigned int *buf;
|
||||
uint32_t *buf;
|
||||
|
||||
// load the file
|
||||
buf = (unsigned int *) QFS_LoadFile (mod->name, 0);
|
||||
buf = (uint32_t *) QFS_LoadFile (mod->name, 0);
|
||||
if (!buf) {
|
||||
if (crash)
|
||||
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->hasfullbrights = false;
|
||||
|
||||
switch (LittleLong (*(unsigned int *) buf)) {
|
||||
switch (LittleLong (*buf)) {
|
||||
case IDHEADER_MDL: // Type 6: Quake 1 .mdl
|
||||
case HEADER_MDL16: // QF Type 6 extended for 16bit precision
|
||||
if (strequal (mod->name, "progs/grenade.mdl")) {
|
||||
|
|
Loading…
Reference in a new issue