From bfd94a378af35a2f95743aaa307767ff63cd122b Mon Sep 17 00:00:00 2001 From: TimeServ Date: Sun, 10 Jul 2011 21:32:51 +0000 Subject: [PATCH] don't try to find initents func on q1qvms git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3866 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/server/sv_init.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/engine/server/sv_init.c b/engine/server/sv_init.c index e7f1ffe2..7bca2941 100644 --- a/engine/server/sv_init.c +++ b/engine/server/sv_init.c @@ -1257,12 +1257,15 @@ void SV_SpawnServer (char *server, char *startspot, qboolean noents, qboolean us // run the frame start qc function to let progs check cvars SV_ProgStartFrame (); //prydon gate seems to fail because of this allowance - for (i = 0; i < svs.numprogs; i++) //do this AFTER precaches have been played with... + if (svs.gametype != GT_Q1QVM) //we cannot do this with qvm { - f = PR_FindFunction (svprogfuncs, "initents", svs.progsnum[i]); - if (f) + for (i = 0; i < svs.numprogs; i++) //do this AFTER precaches have been played with... { - PR_ExecuteProgram(svprogfuncs, f); + f = PR_FindFunction (svprogfuncs, "initents", svs.progsnum[i]); + if (f) + { + PR_ExecuteProgram(svprogfuncs, f); + } } } }