shithub: choc

Download patch

ref: ef9b45168fcf24418f6fdb42743dc3766ca78de3
parent: 3ce64ca059a9eb4d18a9978290e3d23e7262b2dd
author: Jonathan Dowland <jon@dow.land>
date: Wed Oct 11 04:22:14 EDT 2017

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.

--- a/src/setup/joystick.c
+++ b/src/setup/joystick.c
@@ -1030,7 +1030,7 @@
                    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"),