mirror of
https://github.com/UberGames/ioef.git
synced 2024-11-28 06:52:35 +00:00
Show warning when renderer cannot load model after checking all supported formats, instead of after each format.
This commit is contained in:
parent
2fbf9d9006
commit
93d1d0f83e
1 changed files with 3 additions and 8 deletions
|
@ -108,10 +108,6 @@ qhandle_t R_RegisterMD3(const char *name, model_t *mod)
|
||||||
return mod->index;
|
return mod->index;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef _DEBUG
|
|
||||||
ri.Printf(PRINT_WARNING,"R_RegisterMD3: couldn't load %s\n", name);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
mod->type = MOD_BAD;
|
mod->type = MOD_BAD;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -147,7 +143,6 @@ qhandle_t R_RegisterMDR(const char *name, model_t *mod)
|
||||||
|
|
||||||
if(!loaded)
|
if(!loaded)
|
||||||
{
|
{
|
||||||
ri.Printf(PRINT_WARNING,"R_RegisterMDR: couldn't load mdr file %s\n", name);
|
|
||||||
mod->type = MOD_BAD;
|
mod->type = MOD_BAD;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -183,7 +178,6 @@ qhandle_t R_RegisterIQM(const char *name, model_t *mod)
|
||||||
|
|
||||||
if(!loaded)
|
if(!loaded)
|
||||||
{
|
{
|
||||||
ri.Printf(PRINT_WARNING,"R_RegisterIQM: couldn't load iqm file %s\n", name);
|
|
||||||
mod->type = MOD_BAD;
|
mod->type = MOD_BAD;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -371,11 +365,12 @@ qhandle_t RE_RegisterModel( const char *name ) {
|
||||||
name, altName );
|
name, altName );
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
return hModel;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return hModel;
|
ri.Printf(PRINT_WARNING, "WARNING: Failed to load model %s!\n", name);
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue