foxygit / doom Log in
commit 24996f5b0a32598d504dc2fe3748bc0907c26391
Author:     Simon Howard <fraggle@gmail.com>
AuthorDate: Thu Oct 31 03:21:44 2013 +0000
Commit:     Simon Howard <fraggle@gmail.com>
CommitDate: Thu Oct 31 03:21:44 2013 +0000

    Only show 'flying' controls when configuring Heretic or Hexen, not
    Strife (thanks Alexandre-Xavier).

    Subversion-branch: /branches/v2-branch
    Subversion-revision: 2736
---
 src/setup/keyboard.c | 11 +++++++----
 1 file 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);