diff options
author | Simon Howard | 2013-10-31 03:21:44 +0000 |
---|---|---|
committer | Simon Howard | 2013-10-31 03:21:44 +0000 |
commit | 24996f5b0a32598d504dc2fe3748bc0907c26391 (patch) | |
tree | ce453cdd6a1e631b27693de5e6ffa263d88f80b3 /src | |
parent | 8b4fe781d4a5267c3c689a43508bac657df34357 (diff) | |
download | chocolate-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
Diffstat (limited to 'src')
-rw-r--r-- | src/setup/keyboard.c | 11 |
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); |