worldspawn: Make sure it's only called once, to avoid multiple worldspawn entities (this can happen...) from messing everything up.

This commit is contained in:
Marco Cawthorne 2019-01-06 21:59:58 +01:00
parent 3ef5e6c009
commit f0d107bb8a

View file

@ -256,7 +256,15 @@ worldspawn
It's the map entity, literally
=================
*/
int g_initialized;
void worldspawn( void ) {
if (g_initialized) {
return;
}
g_initialized = TRUE;
int iMOTDLines = 0;
// Let's load materials.txt because someone thought this was the best idea