*** empty log message ***
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1529 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -237,7 +237,6 @@ char *executeret(const char *p) // all evaluation hap
|
||||
p += strcspn(p, ";\n\0");
|
||||
cont = *p++!=0; // more statements if this isn't the end of the string
|
||||
char *c = w[0];
|
||||
if(*c=='/') c++; // strip irc-style command prefix
|
||||
if(!*c) continue; // empty statement
|
||||
|
||||
DELETEA(retval);
|
||||
|
||||
@@ -225,12 +225,11 @@ int histpos = 0;
|
||||
|
||||
void history(int n)
|
||||
{
|
||||
static bool rec = false;
|
||||
if(!rec && n>=0 && n<vhistory.length())
|
||||
if(vhistory.inrange(n))
|
||||
{
|
||||
rec = true;
|
||||
execute(vhistory[vhistory.length()-n-1]);
|
||||
rec = false;
|
||||
char *buf = vhistory[vhistory.length()-n-1];
|
||||
if(buf[0]=='/') execute(buf+1);
|
||||
else toserver(buf);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -285,7 +284,7 @@ void keypress(int code, bool isdown, int cooked)
|
||||
vhistory.add(newstring(cmdline.buf)); // cap this?
|
||||
}
|
||||
histpos = vhistory.length();
|
||||
if(cmdline.buf[0]=='/') execute(cmdline.buf);
|
||||
if(cmdline.buf[0]=='/') execute(cmdline.buf+1);
|
||||
else toserver(cmdline.buf);
|
||||
}
|
||||
saycommand(NULL);
|
||||
|
||||
Reference in New Issue
Block a user