mirror of
https://github.com/nzp-team/quakespasm.git
synced 2024-11-14 00:11:19 +00:00
Merge pull request #24 from ScatterBox/main
This commit is contained in:
commit
afe879cb4d
3 changed files with 13 additions and 1 deletions
|
@ -263,6 +263,7 @@ char *osk_text2 [] =
|
||||||
" Z X C V B N M < > ? "
|
" Z X C V B N M < > ? "
|
||||||
};
|
};
|
||||||
extern qboolean console_enabled;
|
extern qboolean console_enabled;
|
||||||
|
extern char *pr_strings;
|
||||||
void Key_Console (int key)
|
void Key_Console (int key)
|
||||||
{
|
{
|
||||||
static char current[MAXCMDLINE] = "";
|
static char current[MAXCMDLINE] = "";
|
||||||
|
@ -351,6 +352,13 @@ void Key_Console (int key)
|
||||||
key_linepos = 1;
|
key_linepos = 1;
|
||||||
if (cls.state == ca_disconnected)
|
if (cls.state == ca_disconnected)
|
||||||
SCR_UpdateScreen (); // force an update, because the command may take some time
|
SCR_UpdateScreen (); // force an update, because the command may take some time
|
||||||
|
|
||||||
|
// for clientside cmds
|
||||||
|
if (cls.state == ca_connected)
|
||||||
|
{
|
||||||
|
pr_global_struct->CMD_STRING = (key_lines[edit_line-1]+1 - pr_strings);
|
||||||
|
PR_ExecuteProgram (pr_global_struct->ParseClientCommand);
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
case K_TAB:
|
case K_TAB:
|
||||||
case K_LSHOULDER:
|
case K_LSHOULDER:
|
||||||
|
|
|
@ -686,7 +686,8 @@ void M_Restart_Key (int key)
|
||||||
key_dest = key_game;
|
key_dest = key_game;
|
||||||
m_state = m_none;
|
m_state = m_none;
|
||||||
paused_hack = false;
|
paused_hack = false;
|
||||||
Cbuf_AddText ("restart\n");
|
//Cbuf_AddText ("restart\n");
|
||||||
|
PR_ExecuteProgram (pr_global_struct->Soft_Restart);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -56,6 +56,9 @@ typedef struct
|
||||||
func_t ClientDisconnect;
|
func_t ClientDisconnect;
|
||||||
func_t SetNewParms;
|
func_t SetNewParms;
|
||||||
func_t SetChangeParms;
|
func_t SetChangeParms;
|
||||||
|
func_t ParseClientCommand; // special command calls
|
||||||
|
string_t CMD_STRING;
|
||||||
|
func_t Soft_Restart;
|
||||||
} globalvars_t;
|
} globalvars_t;
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
|
|
Loading…
Reference in a new issue