mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-09 01:01:07 +00:00
Fix a couple of stupid bugs (reported by c0burn).
This commit is contained in:
parent
8f3d6d12ac
commit
68f404a3df
1 changed files with 2 additions and 1 deletions
|
@ -775,7 +775,7 @@ void _Host_Frame (double time)
|
|||
pr_global_struct->deathmatch = cl.gametype;
|
||||
pr_global_struct->coop = (cl.gametype == GAME_COOP) && cl.maxclients != 1;
|
||||
if (qcvm->extglobals.player_localnum)
|
||||
*qcvm->extglobals.player_localnum = cl.viewentity; //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.
|
||||
|
||||
//and call the init function... if it exists.
|
||||
qcvm->worldmodel = cl.worldmodel;
|
||||
|
@ -796,6 +796,7 @@ void _Host_Frame (double time)
|
|||
cl.sendprespawn = false;
|
||||
MSG_WriteByte (&cls.message, clc_stringcmd);
|
||||
MSG_WriteString (&cls.message, "prespawn");
|
||||
vid.recalc_refdef = true;
|
||||
}
|
||||
else if (!cls.message.cursize)
|
||||
MSG_WriteByte (&cls.message, clc_nop);
|
||||
|
|
Loading…
Reference in a new issue