mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +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
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue