From 84f136b51e07b4d9815c6b033e897ebaef4f16a7 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sun, 23 Mar 2014 21:06:02 -0400 Subject: Set default for key_menu_screenshot to 0. In #364 I recommended -1 as the default to avoid taking screenshots in some situations where a key event is posted for key 0. It turns out that wasn't such a great idea, as -1 is not parsed properly by the config parser, and is shown as ??-1 in the setup tool. Default to zero instead, and add guards to prevent screenshots being taken by mistake. Thanks to Alexandre-Xavier for pointing this out. --- src/strife/m_menu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/strife') diff --git a/src/strife/m_menu.c b/src/strife/m_menu.c index d66495c1..27a9045c 100644 --- a/src/strife/m_menu.c +++ b/src/strife/m_menu.c @@ -2086,7 +2086,7 @@ boolean M_Responder (event_t* ev) G_ScreenShot(); return true; } - else if (key == key_menu_screenshot) + else if (key != 0 && key == key_menu_screenshot) { G_ScreenShot(); return true; -- cgit v1.2.3