shithub: choc

Download patch

ref: 24996f5b0a32598d504dc2fe3748bc0907c26391
parent: 8b4fe781d4a5267c3c689a43508bac657df34357
author: Simon Howard <fraggle@gmail.com>
date: Wed Oct 30 23:21:44 EDT 2013

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

Subversion-branch: /branches/v2-branch
Subversion-revision: 2736

--- a/src/setup/keyboard.c
+++ b/src/setup/keyboard.c
@@ -199,11 +199,14 @@
         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);