]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Minigames: ignore downarrow and uparrow keys while playing Connect Four instead of...
authorterencehill <piuntn@gmail.com>
Mon, 28 Dec 2020 20:31:32 +0000 (21:31 +0100)
committerterencehill <piuntn@gmail.com>
Mon, 28 Dec 2020 21:01:54 +0000 (22:01 +0100)
qcsrc/common/minigames/minigame/c4.qc

index 1f7f87c83ffd044408851aa4d996631bf5680393..8c12f8dfb1a7cefa1b626f963265368cf8d39ec1 100644 (file)
@@ -446,6 +446,11 @@ int c4_client_event(entity minigame, string event, ...)
                                                else
                                                        c4_set_curr_pos(c4_get_lowest_tile(minigame, minigame_relative_tile(c4_curr_pos,-1,0,C4_NUM_CNT,C4_LET_CNT)));
                                                return true;
+                                       case K_UPARROW:
+                                       case K_KP_UPARROW:
+                                       case K_DOWNARROW:
+                                       case K_KP_DOWNARROW:
+                                               return true;
                                        /*case K_UPARROW:
                                        case K_KP_UPARROW:
                                                if (event == "key_released")