summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Howard2013-10-31 03:21:44 +0000
committerSimon Howard2013-10-31 03:21:44 +0000
commit24996f5b0a32598d504dc2fe3748bc0907c26391 (patch)
treece453cdd6a1e631b27693de5e6ffa263d88f80b3
parent8b4fe781d4a5267c3c689a43508bac657df34357 (diff)
downloadchocolate-doom-24996f5b0a32598d504dc2fe3748bc0907c26391.tar.gz
chocolate-doom-24996f5b0a32598d504dc2fe3748bc0907c26391.tar.bz2
chocolate-doom-24996f5b0a32598d504dc2fe3748bc0907c26391.zip
Only show 'flying' controls when configuring Heretic or Hexen, not
Strife (thanks Alexandre-Xavier). Subversion-branch: /branches/v2-branch Subversion-revision: 2736
-rw-r--r--src/setup/keyboard.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/setup/keyboard.c b/src/setup/keyboard.c
index feceaa78..6b1667e1 100644
--- a/src/setup/keyboard.c
+++ b/src/setup/keyboard.c
@@ -199,11 +199,14 @@ static void ConfigExtraKeys(TXT_UNCAST_ARG(widget), TXT_UNCAST_ARG(unused))
AddKeyControl(table, "Look down", &key_lookdown);
AddKeyControl(table, "Center view", &key_lookcenter);
- AddSectionLabel(table, "Flying", true);
+ if (gamemission == heretic || gamemission == hexen)
+ {
+ AddSectionLabel(table, "Flying", true);
- AddKeyControl(table, "Fly up", &key_flyup);
- AddKeyControl(table, "Fly down", &key_flydown);
- AddKeyControl(table, "Fly center", &key_flycenter);
+ AddKeyControl(table, "Fly up", &key_flyup);
+ AddKeyControl(table, "Fly down", &key_flydown);
+ AddKeyControl(table, "Fly center", &key_flycenter);
+ }
AddSectionLabel(table, "Inventory", true);