*** empty log message ***

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1362 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2007-10-15 20:12:47 +00:00
parent 82174b2081
commit ff820b7ab3
4 changed files with 14 additions and 5 deletions
+10 -2
View File
@@ -1,6 +1,14 @@
// server.cpp: little more than enhanced multicaster
// runs dedicated or as client coroutine
#ifdef WIN32
#include <io.h>
#else
#include <unistd.h>
#define _dup dup
#define _fileno fileno
#endif
#include "cube.h"
#include "servercontroller.h"
@@ -356,10 +364,10 @@ string smapname;
char *adminpasswd = NULL, *motd = NULL;
int countclients(int type, bool not=false)
int countclients(int type, bool exclude = false)
{
int num = 0;
loopv(clients) if((!not && clients[i]->type == type) || (not && clients[i]->type != type)) num++;
loopv(clients) if((clients[i]->type!=type)==exclude) num++;
return num;
}