qbyte* newqueue;
logq_size *= factor;
- newqueue = Mem_Alloc (tempmempool, logq_size);
+ newqueue = (qbyte *)Mem_Alloc (tempmempool, logq_size);
memcpy (newqueue, logqueue, logq_ind);
Mem_Free (logqueue);
logqueue = newqueue;
// Allocate a log queue
logq_size = 512;
- logqueue = Mem_Alloc (tempmempool, logq_size);
+ logqueue = (qbyte *)Mem_Alloc (tempmempool, logq_size);
logq_ind = 0;
Cvar_RegisterVariable (&log_file);
if (index == 0)
{
// if this is the beginning of a new line, print timestamp
- char *timestamp = timestamps.integer ? Sys_TimeString(timeformat.string) : "";
+ const char *timestamp = timestamps.integer ? Sys_TimeString(timeformat.string) : "";
// reset the color
// FIXME: 1. perhaps we should use a terminal system 2. use a constant instead of 7!
line[index++] = STRING_COLOR_TAG;
char *text;
int i;
float time;
- extern char chat_buffer[];
+ extern char chat_buffer[256];
char temptext[256];
int colorindex = -1; //-1 for default
sprintf(temptext, "say_team:%s%c", chat_buffer, (int) 10+((int)(realtime*con_cursorspeed)&1));
else
sprintf(temptext, "say:%s%c", chat_buffer, (int) 10+((int)(realtime*con_cursorspeed)&1));
- while (strlen(temptext) >= (size_t) con_linewidth)
+ while ((int)strlen(temptext) >= con_linewidth)
{
DrawQ_ColoredString( 0, v, temptext, con_linewidth, 8, 8, 1.0, 1.0, 1.0, 1.0, 0, &colorindex );
strcpy(temptext, &temptext[con_linewidth]);
The typing input line at the bottom should only be drawn if typing is allowed
================
*/
-extern char engineversion[40];
void Con_DrawConsole (int lines)
{
int i, y, rows, j;