if (key_dest == key_console)
{
if (cls.state == ca_connected)
- {
+// {
key_dest = key_game;
- key_lines[edit_line][1] = 0; // clear any typing
- key_linepos = 1;
- }
+// key_lines[edit_line][1] = 0; // clear any typing
+// key_linepos = 1;
+// }
else
- {
M_Menu_Main_f ();
- }
}
else
key_dest = key_console;
- SCR_EndLoadingPlaque ();
+// SCR_EndLoadingPlaque ();
memset (con_times, 0, sizeof(con_times));
}
{
va_list argptr;
char msg[MAXPRINTMSG];
- static qboolean inupdate;
+// static qboolean inupdate;
va_start (argptr,fmt);
vsprintf (msg,fmt,argptr);
Con_Print (msg);
// update the screen if the console is displayed
+ // LordHavoc: I don't think there's a real need for this
+ /*
// LordHavoc: don't print text while loading scripts
if (cls.state != ca_disconnected)
if (cls.signon != SIGNONS && !scr_disabled_for_loading )
inupdate = false;
}
}
+ */
}
/*
text = con_text + (i % con_totallines)*con_linewidth;
clearnotify = 0;
- scr_copytop = 1;
// for (x = 0 ; x < con_linewidth ; x++)
// Draw_Character ( (x+1)<<3, v, text[x]);
if (key_dest == key_message)
{
clearnotify = 0;
- scr_copytop = 1;
x = 0;
if (drawinput)
Con_DrawInput ();
}
-
-
-/*
-==================
-Con_NotifyBox
-==================
-*/
-void Con_NotifyBox (char *text)
-{
- double t1, t2;
-
-// during startup for sound / cd warnings
- Con_Printf("\n\n\35\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\37\n");
-
- Con_Printf (text);
-
- Con_Printf ("Press a key.\n");
- Con_Printf("\35\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\37\n");
-
- key_count = -2; // wait for a key down and up
- key_dest = key_console;
-
- do
- {
- t1 = Sys_FloatTime ();
- SCR_UpdateScreen ();
- Sys_SendKeyEvents ();
- t2 = Sys_FloatTime ();
- realtime += t2-t1; // make the cursor blink
- } while (key_count < 0);
-
- Con_Printf ("\n");
- key_dest = key_game;
- realtime = 0; // put the cursor back to invisible
-}
-