spawning fixes

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2750 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2008-09-24 21:32:16 +00:00
parent f6bb4b796a
commit adcaf25e1b
2 changed files with 22 additions and 14 deletions
+7 -5
View File
@@ -152,11 +152,6 @@ 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]) // we are the first client on this server, set map
{
nextmode = gamemode;
changemap(getclientmap());
}
break;
}
@@ -747,6 +742,13 @@ void parsemessages(int cn, playerent *d, ucharbuf &p)
neterr("type");
return;
}
// check if joining here so as not to interrupt welcomepacket
if(joining<0 && getclientmap()[0]) // we are the first client on this server, set map
{
nextmode = gamemode;
changemap(getclientmap());
}
}
void receivefile(uchar *data, int len)