Skip to content

Commit

Permalink
Reverted r2209...
Browse files Browse the repository at this point in the history
git-svn-id: svn://svn.icculus.org/quake3/trunk@2210 edf5b092-35ff-0310-97b2-ce42778d08ea
  • Loading branch information
ztm committed Dec 8, 2011
1 parent 1b6e733 commit 81d7251
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions code/renderer/tr_model.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,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;
}
Expand Down Expand Up @@ -143,6 +147,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;
}
Expand Down Expand Up @@ -178,6 +183,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;
}
Expand Down Expand Up @@ -365,12 +371,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;
}

/*
Expand Down

0 comments on commit 81d7251

Please sign in to comment.