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:
ac_stef
2009-07-02 23:01:10 +00:00
parent 9c12bd01d5
commit e0bfc59ecf
10 changed files with 41 additions and 73 deletions
-16
View File
@@ -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