don't crash if they gave us a dodgy model (md3s... hmm)

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@719 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2005-01-04 10:58:18 +00:00
parent b6d8192406
commit 585dc4db55
1 changed files with 7 additions and 1 deletions

View File

@ -277,9 +277,15 @@ model_t *Mod_LoadModel (model_t *mod, qboolean crash)
#endif
default:
case 29:
case 30:
Mod_LoadBrushModel (mod, buf);
break;
default:
if (crash)
SV_Error ("Mod_NumForName: %s: format not recognised", mod->name);
return NULL;
}
return mod;