summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/g_game.c3
-rw-r--r--src/m_config.c7
2 files changed, 9 insertions, 1 deletions
diff --git a/src/g_game.c b/src/g_game.c
index a9ee2641..701b98d5 100644
--- a/src/g_game.c
+++ b/src/g_game.c
@@ -185,6 +185,7 @@ int key_weapon8 = '8';
int key_pause = KEY_PAUSE;
int key_demo_quit = 'q';
+int key_spy = KEY_F12;
int mousebfire = 0;
int mousebstrafe = 1;
@@ -740,7 +741,7 @@ boolean G_Responder (event_t* ev)
{
// allow spy mode changes even during the demo
if (gamestate == GS_LEVEL && ev->type == ev_keydown
- && ev->data1 == KEY_F12 && (singledemo || !deathmatch) )
+ && ev->data1 == key_spy && (singledemo || !deathmatch) )
{
// spy mode
do
diff --git a/src/m_config.c b/src/m_config.c
index 8744e98a..b2e52e7f 100644
--- a/src/m_config.c
+++ b/src/m_config.c
@@ -122,6 +122,7 @@ extern int key_menu_messages;
extern int key_menu_qload;
extern int key_menu_quit;
extern int key_menu_gamma;
+extern int key_spy;
extern int key_menu_incscreen;
extern int key_menu_decscreen;
@@ -923,6 +924,12 @@ static default_t extra_defaults_list[] =
CONFIG_VARIABLE_KEY(key_menu_gamma, key_menu_gamma),
//!
+ // Keyboard shortcut to switch view in multiplayer.
+ //
+
+ CONFIG_VARIABLE_KEY(key_spy, key_spy),
+
+ //!
// Keyboard shortcut to increase the screen size.
//