*** 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:
Lee Salzman
2007-12-30 04:32:21 +00:00
parent 5849faf3cf
commit bc5c64f875
2 changed files with 5 additions and 7 deletions
+5 -6
View File
@@ -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);