git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2714 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2008-09-20 17:21:27 +00:00
parent c01d40f4ab
commit a0b8295182
4 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -458,7 +458,7 @@ bool nickcomplete(char *s)
if(!players.length()) return false;
char *cp = s;
for(int i = strlen(s) - 2; i > 0; i--)
for(int i = (int)strlen(s) - 2; i > 0; i--)
if(s[i] == ' ') { cp = s + i + 1; break; }
if(!completesize) { completesize = (int)strlen(cp); completeidx = 0; }
@@ -494,7 +494,7 @@ void commandcomplete(char *s)
}
if(!s[1]) return;
char *cp = s;
for(int i = strlen(s) - 2; i > 0; i--)
for(int i = (int)strlen(s) - 2; i > 0; i--)
if(s[i] == ';' || s[i] == ' ') { cp = s + i; break; }
if(!completesize)
{