con_totallines = CON_TEXTSIZE / con_linewidth;
// Allocate a log queue
- logq_size = 512;
+ logq_size = MAX_INPUTLINE;
logqueue = (unsigned char *)Mem_Alloc (tempmempool, logq_size);
logq_ind = 0;
{
int mask = 0;
static int index = 0;
- static char line[16384];
+ static char line[MAX_INPUTLINE];
for (;*msg;msg++)
{
// play talk wav
S_LocalSound ("sound/misc/talk.wav");
}
- if (gamemode == GAME_NEXUIZ)
- {
- line[index++] = '^';
+ //if (gamemode == GAME_NEXUIZ)
+ //{
+ line[index++] = STRING_COLOR_TAG;
line[index++] = '3';
- }
- else
- {
- // go to colored text
- mask = 128;
- }
+ //}
+ //else
+ //{
+ // // go to colored text
+ // mask = 128;
+ //}
msg++;
}
// store timestamp
// append the character
line[index++] = *msg;
// if this is a newline character, we have a complete line to print
- if (*msg == '\n' || index >= 16000)
+ if (*msg == '\n' || index >= (int)sizeof(line) / 2)
{
// terminate the line
line[index] = 0;
}
-// LordHavoc: increased from 4096 to 16384
-#define MAXPRINTMSG 16384
-
/*
================
Con_Printf
void Con_Printf(const char *fmt, ...)
{
va_list argptr;
- char msg[MAXPRINTMSG];
+ char msg[MAX_INPUTLINE];
va_start(argptr,fmt);
dpvsnprintf(msg,sizeof(msg),fmt,argptr);
void Con_DPrintf(const char *fmt, ...)
{
va_list argptr;
- char msg[MAXPRINTMSG];
+ char msg[MAX_INPUTLINE];
if (!developer.integer)
return; // don't confuse non-developers with techie stuff...
{
int y;
int i;
- char editlinecopy[257], *text;
+ char editlinecopy[MAX_INPUTLINE+1], *text;
if (!key_consoleactive)
return; // don't draw anything
y = (int)strlen(text);
// fill out remainder with spaces
- for (i = y; i < 256; i++)
+ for (i = y; i < (int)sizeof(editlinecopy)-1; i++)
text[i] = ' ';
// add the cursor frame
char *text;
int i;
float time;
- extern char chat_buffer[256];
- char temptext[256];
+ char temptext[MAX_INPUTLINE];
int colorindex = -1; //-1 for default
if (con_notify.integer < 0)