[quake3-commits] r2209 - trunk/code/renderer
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Thu Dec 8 18:17:37 EST 2011
Author: ztm
Date: 2011-12-08 18:17:37 -0500 (Thu, 08 Dec 2011)
New Revision: 2209
Modified:
trunk/code/renderer/tr_model.c
Log:
Show warning when renderer cannot load model after checking all supported formats, instead of after each format.
Modified: trunk/code/renderer/tr_model.c
===================================================================
--- trunk/code/renderer/tr_model.c 2011-12-08 22:54:45 UTC (rev 2208)
+++ trunk/code/renderer/tr_model.c 2011-12-08 23:17:37 UTC (rev 2209)
@@ -108,10 +108,6 @@
return mod->index;
}
-#ifdef _DEBUG
- ri.Printf(PRINT_WARNING,"R_RegisterMD3: couldn't load %s\n", name);
-#endif
-
mod->type = MOD_BAD;
return 0;
}
@@ -147,7 +143,6 @@
if(!loaded)
{
- ri.Printf(PRINT_WARNING,"R_RegisterMDR: couldn't load mdr file %s\n", name);
mod->type = MOD_BAD;
return 0;
}
@@ -183,7 +178,6 @@
if(!loaded)
{
- ri.Printf(PRINT_WARNING,"R_RegisterIQM: couldn't load iqm file %s\n", name);
mod->type = MOD_BAD;
return 0;
}
@@ -371,11 +365,12 @@
name, altName );
}
- break;
+ return hModel;
}
}
- return hModel;
+ ri.Printf(PRINT_WARNING, "WARNING: Failed to load model %s!\n", name);
+ return 0;
}
/*
More information about the quake3-commits
mailing list