firstrun script, new menu items, lanconnect fix

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1512 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2007-12-29 16:54:44 +00:00
parent 17ec0b131e
commit e87a167c93
12 changed files with 693 additions and 293 deletions
+4 -4
View File
@@ -347,19 +347,19 @@ void renderdoc(int x, int y)
if(ident->arguments.length() > 0) // args
{
extern int commandpos;
extern textinputbuffer cmdline;
char *args = strchr(c, ' ');
int arg = -1;
if(args)
{
args++;
if(commandpos >= 0)
if(cmdline.pos >= 0)
{
if(commandpos >= args-c)
if(cmdline.pos >= args-c)
{
string a;
s_strncpy(a, args, commandpos-(args-c)+1);
s_strncpy(a, args, cmdline.pos-(args-c)+1);
args = a;
arg = numargs(args);
}