- Move CCMD pause to gamecontrol.cpp so it can be static.

This commit is contained in:
Mitchell Richters 2023-03-18 19:54:05 +11:00
parent b3c27a177e
commit 672c53c35c
3 changed files with 7 additions and 7 deletions

View file

@ -178,6 +178,7 @@ CVAR(Bool, disableautoload, false, CVAR_ARCHIVE | CVAR_NOINITCALL | CVAR_GLOBALC
extern int hud_size_max; extern int hud_size_max;
static bool sendPause;
bool pausedWithKey; bool pausedWithKey;
bool gamesetinput = false; bool gamesetinput = false;
@ -1289,6 +1290,12 @@ void CONFIG_ReadCombatMacros()
//========================================================================== //==========================================================================
CCMD(pause)
{
sendPause = true;
}
CCMD(snd_reset) CCMD(snd_reset)
{ {
Mus_Stop(); Mus_Stop();

View file

@ -235,7 +235,6 @@ enum
extern int paused; extern int paused;
extern int chatmodeon; extern int chatmodeon;
extern bool sendPause;
extern int lastTic; extern int lastTic;
extern int PlayClock; extern int PlayClock;

View file

@ -48,7 +48,6 @@
static int WeaponToSend = 0; static int WeaponToSend = 0;
ESyncBits ActionsToSend = 0; ESyncBits ActionsToSend = 0;
static int dpad_lock = 0; static int dpad_lock = 0;
bool sendPause;
bool crouch_toggle; bool crouch_toggle;
// Mouse speeds // Mouse speeds
@ -323,11 +322,6 @@ CCMD(holsterweapon)
ActionsToSend |= SB_HOLSTER; ActionsToSend |= SB_HOLSTER;
} }
CCMD(pause)
{
sendPause = true;
}
CCMD(warptocoords) CCMD(warptocoords)
{ {
if (netgame) if (netgame)