From: terencehill Date: Mon, 28 Dec 2020 20:31:32 +0000 (+0100) Subject: Minigames: ignore downarrow and uparrow keys while playing Connect Four instead of... X-Git-Tag: xonotic-v0.8.5~597^2~5 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=05e86d96abf178ca9b05516e97594d69a179f793;p=xonotic%2Fxonotic-data.pk3dir.git Minigames: ignore downarrow and uparrow keys while playing Connect Four instead of letting them change minigame menu selection --- diff --git a/qcsrc/common/minigames/minigame/c4.qc b/qcsrc/common/minigames/minigame/c4.qc index 1f7f87c83..8c12f8dfb 100644 --- a/qcsrc/common/minigames/minigame/c4.qc +++ b/qcsrc/common/minigames/minigame/c4.qc @@ -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")