foxygit / doom Log in
commit ef9b45168fcf24418f6fdb42743dc3766ca78de3
Author:     Jonathan Dowland <jon@dow.land>
AuthorDate: Wed Oct 11 08:22:14 2017 +0100
Commit:     Jonathan Dowland <jon@dow.land>
CommitDate: Wed Oct 11 08:22:14 2017 +0100

    don't rely on enum ordering for game properties

    It happens that all gamemission values that match >= heretic
    support look up/down, but this is not a property that we are
    explicitly guaranteeing.
---
 src/setup/joystick.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/setup/joystick.c b/src/setup/joystick.c
index 61699f1a..740b8d7e 100644
--- a/src/setup/joystick.c
+++ b/src/setup/joystick.c
@@ -1030,7 +1030,7 @@ void ConfigJoystick(void)
                    TXT_TABLE_EMPTY,
                    NULL);

-    if (gamemission >= heretic) // heretic, hexen, strife
+    if (gamemission == heretic || gamemission == hexen || gamemission == strife)
     {
         TXT_AddWidgets(window,
                    TXT_NewLabel("Look up/down"),