mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-02-28 14:11:13 +00:00
- 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:
parent
289b0a089c
commit
bb4f46489f
2 changed files with 14 additions and 3 deletions
|
@ -34,6 +34,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
|
||||||
BEGIN_PS_NS
|
BEGIN_PS_NS
|
||||||
|
|
||||||
|
static bool gamesetinput = false;
|
||||||
|
|
||||||
static int osdcmd_warptocoords(CCmdFuncPtr parm)
|
static int osdcmd_warptocoords(CCmdFuncPtr parm)
|
||||||
{
|
{
|
||||||
if (parm->numparms < 3 || parm->numparms > 5)
|
if (parm->numparms < 3 || parm->numparms > 5)
|
||||||
|
@ -110,10 +112,16 @@ static int osdcmd_third_person_view(CCmdFuncPtr parm)
|
||||||
{
|
{
|
||||||
bCamera = !bCamera;
|
bCamera = !bCamera;
|
||||||
|
|
||||||
if (bCamera)
|
if (bCamera && !cl_syncinput)
|
||||||
|
{
|
||||||
|
gamesetinput = cl_syncinput = true;
|
||||||
GrabPalette();
|
GrabPalette();
|
||||||
}
|
}
|
||||||
cl_syncinput = bCamera;
|
}
|
||||||
|
if (gamesetinput && !bCamera)
|
||||||
|
{
|
||||||
|
gamesetinput = cl_syncinput = false;
|
||||||
|
}
|
||||||
return CCMD_OK;
|
return CCMD_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2836,7 +2836,10 @@ DoPlayerMoveVehicle(PLAYERp pp)
|
||||||
}
|
}
|
||||||
|
|
||||||
// force synchronised input here for now.
|
// force synchronised input here for now.
|
||||||
|
if (!cl_syncinput)
|
||||||
|
{
|
||||||
gamesetinput = cl_syncinput = true;
|
gamesetinput = cl_syncinput = true;
|
||||||
|
}
|
||||||
|
|
||||||
if (PLAYER_MOVING(pp) == 0)
|
if (PLAYER_MOVING(pp) == 0)
|
||||||
RESET(pp->Flags, PF_PLAYER_MOVED);
|
RESET(pp->Flags, PF_PLAYER_MOVED);
|
||||||
|
|
Loading…
Reference in a new issue