]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
add an error message
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 5 Jul 2009 18:49:21 +0000 (18:49 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 5 Jul 2009 18:49:21 +0000 (18:49 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9044 d7cf8633-e32d-0410-b094-e92efae38249

sv_main.c

index eb5bbda461e94e4a66b76c6395bcad0c2a58d088..0453ec3afddc9fca565c1c9351443b83128afb0d 100644 (file)
--- a/sv_main.c
+++ b/sv_main.c
@@ -2913,6 +2913,8 @@ void SV_SpawnServer (const char *server)
                dpsnprintf(sv.model_precache[i+1], sizeof(sv.model_precache[i+1]), "*%i", i);
                sv.models[i+1] = Mod_ForName (sv.model_precache[i+1], false, false, sv.modelname);
        }
+       if(i < sv.worldmodel->brush.numsubmodels)
+               Con_Printf("Too many submodels (MAX_MODELS is %i)\n", MAX_MODELS);
 
 //
 // load the rest of the entities