*** 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:
@@ -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