made MAXCMDLINE definition public through keys.h.

git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@240 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
sezero 2010-07-25 10:36:14 +00:00
parent 02e9d464ff
commit b4ae05875e
4 changed files with 6 additions and 9 deletions

View file

@ -60,7 +60,6 @@ int con_vislines;
qboolean con_debuglog = false;
#define MAXCMDLINE 256
extern char key_lines[32][MAXCMDLINE];
extern int edit_line;
extern int key_linepos;
@ -1079,8 +1078,8 @@ void Con_DrawNotify (void)
{
// modified by S.A to support longer lines
char c[MAXCMDLINE+1], *say_prompt; // extra space == +1
int say_length, len;
char c[MAXCMDLINE+1], *say_prompt; // extra space == +1
int say_length, len;
clearnotify = 0;
x = 0;
@ -1104,7 +1103,7 @@ void Con_DrawNotify (void)
while(*text)
{
Draw_Character ( (x+say_length+2)<<3, v, *text); //johnfitz
x++; text++;
x++; text++;
}
Draw_Character ( (x+say_length+1)<<3, v, 10+((int)(realtime*con_cursorspeed)&1));
v += 8;

View file

@ -20,8 +20,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#define MAXCMDLINE 256
#include "arch_def.h"
#include "net_sys.h" /* for net_defs.h */
#include <dirent.h>

View file

@ -28,7 +28,6 @@ key up events are sent even if in console mode
*/
#define HISTORY_FILE_NAME "history.txt"
#define MAXCMDLINE 256
#define CMDLINES 32
char key_lines[CMDLINES][MAXCMDLINE];

View file

@ -137,12 +137,13 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
// JACK: Intellimouse(c) Mouse Wheel Support
#define K_MWHEELUP 239
#define K_MWHEELDOWN 240
#define K_MWHEELDOWN 240
typedef enum {key_game, key_console, key_message, key_menu} keydest_t;
#define MAXCMDLINE 256
extern keydest_t key_dest;
extern char *keybindings[256];
extern int key_repeats[256];