- make the fallback console use stdin

- don't draw scores overlay if the screen is less than 244 wide.
This commit is contained in:
Adam Olsen 2001-10-02 03:24:36 +00:00
parent 9102fceef7
commit 362e4eefc9
2 changed files with 12 additions and 0 deletions

View file

@ -37,6 +37,7 @@ static const char rcsid[] =
#include <stdarg.h> #include <stdarg.h>
#include <stdio.h> #include <stdio.h>
#include "QF/cmd.h"
#include "QF/console.h" #include "QF/console.h"
#include "QF/cvar.h" #include "QF/cvar.h"
#include "QF/plugin.h" #include "QF/plugin.h"
@ -109,4 +110,11 @@ Con_ProcessInput (void)
{ {
if (con_module) if (con_module)
con_module->functions->console->pC_ProcessInput (); con_module->functions->console->pC_ProcessInput ();
else
while (1) {
const char *cmd = Sys_ConsoleInput ();
if (!cmd)
break;
Cbuf_AddText (cmd);
}
} }

View file

@ -899,6 +899,10 @@ Sbar_DeathmatchOverlay (int start)
player_info_t *s; player_info_t *s;
qpic_t *pic; qpic_t *pic;
// FIXME: magic number, gained through experimentation
if (vid.width < 244)
return;
if (largegame) if (largegame)
skip = 8; skip = 8;