- Exhumed/SW: Adjust 9271444feb and 289b0a089c so that the games check the state of cl_syncinput prior to setting it.

This commit is contained in:
Mitchell Richters 2020-09-27 16:08:32 +10:00
parent 289b0a089c
commit bb4f46489f
2 changed files with 14 additions and 3 deletions

View file

@ -34,6 +34,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
BEGIN_PS_NS
static bool gamesetinput = false;
static int osdcmd_warptocoords(CCmdFuncPtr parm)
{
if (parm->numparms < 3 || parm->numparms > 5)
@ -110,10 +112,16 @@ static int osdcmd_third_person_view(CCmdFuncPtr parm)
{
bCamera = !bCamera;
if (bCamera)
if (bCamera && !cl_syncinput)
{
gamesetinput = cl_syncinput = true;
GrabPalette();
}
}
if (gamesetinput && !bCamera)
{
gamesetinput = cl_syncinput = false;
}
cl_syncinput = bCamera;
return CCMD_OK;
}

View file

@ -2836,7 +2836,10 @@ DoPlayerMoveVehicle(PLAYERp pp)
}
// force synchronised input here for now.
gamesetinput = cl_syncinput = true;
if (!cl_syncinput)
{
gamesetinput = cl_syncinput = true;
}
if (PLAYER_MOVING(pp) == 0)
RESET(pp->Flags, PF_PLAYER_MOVED);