reduced client-side maprot to a singleplayer maprot
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4563 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -308,15 +308,6 @@ void parsemessages(int cn, playerent *d, ucharbuf &p)
|
||||
break;
|
||||
}
|
||||
|
||||
case SV_MAPRELOAD: // server requests next map
|
||||
{
|
||||
getint(p);
|
||||
s_sprintfd(nextmapalias)("nextmap_%s", getclientmap());
|
||||
const char *map = getalias(nextmapalias); // look up map in the cycle
|
||||
changemap(map ? map : getclientmap());
|
||||
break;
|
||||
}
|
||||
|
||||
case SV_INITC2S: // another client either connected or changed name/team
|
||||
{
|
||||
d = newclient(cn);
|
||||
@@ -862,13 +853,6 @@ void parsemessages(int cn, playerent *d, ucharbuf &p)
|
||||
}
|
||||
}
|
||||
|
||||
// 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());
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
protocoldebug(false);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user