From 425e538a3751d7318201bcf72403c4755749aa85 Mon Sep 17 00:00:00 2001 From: ewasylishen Date: Wed, 10 Jan 2018 04:40:31 +0000 Subject: [PATCH] keys.c: increase CMDLINES (history.txt lines) from 32 to 64 git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1552 af15c1b1-3010-417e-b628-4374ebc0bcbd --- quakespasm/Quake/keys.c | 1 - quakespasm/Quake/keys.h | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/quakespasm/Quake/keys.c b/quakespasm/Quake/keys.c index 69e2c20b..15f77edf 100644 --- a/quakespasm/Quake/keys.c +++ b/quakespasm/Quake/keys.c @@ -27,7 +27,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. /* key up events are sent even if in console mode */ #define HISTORY_FILE_NAME "history.txt" -#define CMDLINES 32 char key_lines[CMDLINES][MAXCMDLINE]; diff --git a/quakespasm/Quake/keys.h b/quakespasm/Quake/keys.h index 32f2eac2..2e178efc 100644 --- a/quakespasm/Quake/keys.h +++ b/quakespasm/Quake/keys.h @@ -163,7 +163,9 @@ typedef enum {key_game, key_console, key_message, key_menu} keydest_t; extern keydest_t key_dest; extern char *keybindings[MAX_KEYS]; -extern char key_lines[32][MAXCMDLINE]; +#define CMDLINES 64 + +extern char key_lines[CMDLINES][MAXCMDLINE]; extern int edit_line; extern int key_linepos; extern int key_insert;