gamemodes 'hunt the flag' & 'keep the flag' added

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2485 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
ac_stef
2008-09-06 02:57:11 +00:00
parent 4e531f19f0
commit 4ee2dbaddf
37 changed files with 400 additions and 192 deletions
+2 -2
View File
@@ -424,7 +424,7 @@ bool nickcomplete(char *s)
char *cp = s;
for(int i = strlen(s) - 2; i > 0; i--)
if (s[i] == ' ') { cp = s + i + 1; break; }
if(s[i] == ' ') { cp = s + i + 1; break; }
if(!completesize) { completesize = (int)strlen(cp); completeidx = 0; }
int idx = 0;
@@ -460,7 +460,7 @@ void commandcomplete(char *s)
if(!s[1]) return;
char *cp = s;
for(int i = strlen(s) - 2; i > 0; i--)
if (s[i] == ';' || s[i] == ' ') { cp = s + i; break; }
if(s[i] == ';' || s[i] == ' ') { cp = s + i; break; }
if(!completesize)
{
completesize = (int)strlen(cp)-1;