From 68f404a3df4037d5120ed6f1481bb0f217fc7c6f Mon Sep 17 00:00:00 2001 From: Shpoike Date: Wed, 6 Feb 2019 00:06:40 +0000 Subject: [PATCH] Fix a couple of stupid bugs (reported by c0burn). --- Quake/host.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Quake/host.c b/Quake/host.c index 5bdfb65f..58c971af 100644 --- a/Quake/host.c +++ b/Quake/host.c @@ -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);