diff --git a/source/core/gamecontrol.cpp b/source/core/gamecontrol.cpp index 2a7887895..fd24e9227 100644 --- a/source/core/gamecontrol.cpp +++ b/source/core/gamecontrol.cpp @@ -178,6 +178,7 @@ CVAR(Bool, disableautoload, false, CVAR_ARCHIVE | CVAR_NOINITCALL | CVAR_GLOBALC extern int hud_size_max; +static bool sendPause; bool pausedWithKey; bool gamesetinput = false; @@ -1289,6 +1290,12 @@ void CONFIG_ReadCombatMacros() //========================================================================== +CCMD(pause) +{ + sendPause = true; +} + + CCMD(snd_reset) { Mus_Stop(); diff --git a/source/core/gamecontrol.h b/source/core/gamecontrol.h index a950583b9..0647ec113 100644 --- a/source/core/gamecontrol.h +++ b/source/core/gamecontrol.h @@ -235,7 +235,6 @@ enum extern int paused; extern int chatmodeon; -extern bool sendPause; extern int lastTic; extern int PlayClock; diff --git a/source/core/inputstate.cpp b/source/core/inputstate.cpp index e514c9260..1bb8cb5d7 100644 --- a/source/core/inputstate.cpp +++ b/source/core/inputstate.cpp @@ -48,7 +48,6 @@ static int WeaponToSend = 0; ESyncBits ActionsToSend = 0; static int dpad_lock = 0; -bool sendPause; bool crouch_toggle; // Mouse speeds @@ -323,11 +322,6 @@ CCMD(holsterweapon) ActionsToSend |= SB_HOLSTER; } -CCMD(pause) -{ - sendPause = true; -} - CCMD(warptocoords) { if (netgame)