diff options
author | Zack Middleton <zturtleman@gmail.com> | 2011-12-08 23:34:51 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-12 20:16:46 +0000 |
commit | 0bb58e7e31305e7de1c05c56ea50a9a63016af7d (patch) | |
tree | 343746ba44b20d4b0514e3d2d7dd7904ed4a7bfe | |
parent | 7d5490c275a2e79504ce1e003bb34fdeb69893d7 (diff) |
Reverted r2209...
-rw-r--r-- | src/renderer/tr_model.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/renderer/tr_model.c b/src/renderer/tr_model.c index d574d95f..b79fd458 100644 --- a/src/renderer/tr_model.c +++ b/src/renderer/tr_model.c @@ -109,6 +109,10 @@ qhandle_t R_RegisterMD3(const char *name, model_t *mod) return mod->index; } +#ifdef _DEBUG + ri.Printf(PRINT_WARNING,"R_RegisterMD3: couldn't load %s\n", name); +#endif + mod->type = MOD_BAD; return 0; } @@ -144,6 +148,7 @@ qhandle_t R_RegisterMDR(const char *name, model_t *mod) if(!loaded) { + ri.Printf(PRINT_WARNING,"R_RegisterMDR: couldn't load mdr file %s\n", name); mod->type = MOD_BAD; return 0; } @@ -179,6 +184,7 @@ qhandle_t R_RegisterIQM(const char *name, model_t *mod) if(!loaded) { + ri.Printf(PRINT_WARNING,"R_RegisterIQM: couldn't load iqm file %s\n", name); mod->type = MOD_BAD; return 0; } @@ -366,12 +372,11 @@ qhandle_t RE_RegisterModel( const char *name ) { name, altName ); } - return hModel; + break; } } - ri.Printf(PRINT_WARNING, "WARNING: Failed to load model %s!\n", name); - return 0; + return hModel; } /* |