Only show 'flying' controls when configuring Heretic or Hexen, not

Strife (thanks Alexandre-Xavier).

Subversion-branch: /branches/v2-branch
Subversion-revision: 2736
This commit is contained in:
Simon Howard 2013-10-31 03:21:44 +00:00
parent 8b4fe781d4
commit 24996f5b0a

View file

@ -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);