Make sure world.message is set in csqc.

This commit is contained in:
Shpoike 2019-05-02 04:22:54 +01:00
parent 2819ed0adf
commit 9ecc4a30be

View file

@ -777,6 +777,9 @@ void _Host_Frame (double time)
if (qcvm->extglobals.player_localnum) if (qcvm->extglobals.player_localnum)
*qcvm->extglobals.player_localnum = cl.viewentity-1; //this is a guess, but is important for scoreboards. *qcvm->extglobals.player_localnum = cl.viewentity-1; //this is a guess, but is important for scoreboards.
//set a few worldspawn fields too
qcvm->edicts->v.message = PR_SetEngineString(cl.levelname);
//and call the init function... if it exists. //and call the init function... if it exists.
qcvm->worldmodel = cl.worldmodel; qcvm->worldmodel = cl.worldmodel;
SV_ClearWorld(); SV_ClearWorld();