- Exhumed/SW: Move code to trigger synchronised input for edge cases where its needed into gamecontrol.

This commit is contained in:
Mitchell Richters 2020-12-01 07:31:47 +11:00
parent 0b797b0ccd
commit 22f7fc93f4
4 changed files with 25 additions and 17 deletions

View file

@ -226,3 +226,20 @@ extern int chatmodeon;
extern bool sendPause;
extern int lastTic;
//---------------------------------------------------------------------------
//
// Inline functions to help with edge cases where synchronised input is needed.
//
//---------------------------------------------------------------------------
extern bool gamesetinput;
inline void setForcedSyncInput()
{
if (!cl_syncinput) gamesetinput = cl_syncinput = true;
}
inline void resetForcedSyncInput()
{
if (gamesetinput) gamesetinput = cl_syncinput = false;
}