if (cls.state == ca_dedicated)
{
static char text[256];
- int len = 0;
+ static int len = 0;
#ifdef WIN32
int c;
while (_kbhit ())
{
c = _getch ();
- putch (c);
if (c == '\r')
{
- text[len] = 0;
+ text[len] = '\0';
putch ('\n');
len = 0;
return text;
}
- if (c == 8)
+ if (c == '\b')
{
if (len)
{
+ putch (c);
putch (' ');
putch (c);
len--;
- text[len] = 0;
}
continue;
}
- text[len] = c;
- len++;
- text[len] = 0;
- if (len == sizeof (text))
- len = 0;
+ if (len < sizeof (text) - 1)
+ {
+ putch (c);
+ text[len] = c;
+ len++;
+ }
}
#else
fd_set fdset;
4 darkplaces: add qw protocol support (making darkplaces work as a qwcl client) (tell Fuh)
4 darkplaces: add traceboxwithcontents function (same as tracebox but adds the startcontents parameter) (LTH, SeienAbunae, http://forums.inside3d.com/showflat.pl?Board=Engine&Number=909 )
4 darkplaces: add wav music playback (tell Joseph Caporale, tell Static_Fiend)
-4 darkplaces: figure out what is wrong with dedicated server console on win32 and fix it (and tell willis@deathmask.net)
+-n darkplaces: figure out what is wrong with dedicated server console on win32 and fix it (and tell willis@deathmask.net)
4 darkplaces: ingame mod switching
4 darkplaces: make hqbsp save mip textures to bsp if tga textures are found
4 darkplaces: rewrite sound system! (FrikaC, Static_Fiend, SeienAbunae)