mirror of
https://github.com/ZDoom/Raze.git
synced 2025-05-31 01:11:15 +00:00
- Exhumed/SW: Move code to trigger synchronised input for edge cases where its needed into gamecontrol.
This commit is contained in:
parent
0b797b0ccd
commit
22f7fc93f4
4 changed files with 25 additions and 17 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue