spectator mode fixes

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1473 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2007-12-23 10:29:21 +00:00
parent ef008c0646
commit 284572e8f3
5 changed files with 11 additions and 3 deletions
+6 -1
View File
@@ -118,7 +118,12 @@ void parsemessages(int cn, playerent *d, ucharbuf &p)
player1->clientnum = mycn; // we are now fully connected
joining = getint(p);
if(getint(p) > 0) conoutf("INFO: this server is password protected");
if(joining<0 && getclientmap()[0]) changemap(getclientmap()); // we are the first client on this server, set map
if(joining<0 && getclientmap()[0]) // we are the first client on this server, set map
{
string mode;
itoa(mode, gamemode);
callvote(SA_MAP, getclientmap(), mode); // FIXME
}
break;
}