*** empty log message ***

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@709 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2006-11-18 03:03:44 +00:00
parent 4704f88ad6
commit eb371bbc3d
2 changed files with 9 additions and 5 deletions
+8 -4
View File
@@ -99,9 +99,7 @@ void parsemessages(int cn, playerent *d, ucharbuf &p)
{
static char text[MAXTRANS];
int type;
bool mapchanged = false;
bool c2si = false;
bool gib=false;
bool mapchanged = false, c2si = false, gib = false, joining = false;
while(p.remaining()) switch(type = getint(p))
{
@@ -117,7 +115,8 @@ void parsemessages(int cn, playerent *d, ucharbuf &p)
clientnum = mycn; // we are now fully connected
bool firstplayer = !getint(p);
if(getint(p) > 0) conoutf("INFO: this server is password protected");
if(firstplayer && getclientmap()[0]) changemap(getclientmap()); // we are the first client on this server, set map
if(!firstplayer) joining = true;
else if(getclientmap()[0]) changemap(getclientmap()); // we are the first client on this server, set map
break;
};
@@ -133,6 +132,11 @@ void parsemessages(int cn, playerent *d, ucharbuf &p)
case SV_MAPCHANGE:
getstring(text, p);
changemapserv(text, getint(p));
if(joining && m_arena)
{
player1->state = CS_DEAD;
showscores(true);
};
mapchanged = true;
break;
+1 -1
View File
@@ -776,7 +776,7 @@ void send_welcome(int n)
putint(p, smapname[0]);
putint(p, serverpassword[0] ? 1 : 0);
int numcl = numclients();
if(smapname[0] && !serverpassword[0])
if(smapname[0])
{
putint(p, SV_MAPCHANGE);
sendstring(smapname, p);