From: divverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Date: Sun, 5 Jul 2009 18:49:21 +0000 (+0000)
Subject: add an error message
X-Git-Tag: xonotic-v0.1.0preview~1583
X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=58c28be6d173440a0f074317b91765f8deaa1877;p=xonotic%2Fdarkplaces.git

add an error message


git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9044 d7cf8633-e32d-0410-b094-e92efae38249
---

diff --git a/sv_main.c b/sv_main.c
index eb5bbda4..0453ec3a 100644
--- 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