*** empty log message ***
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1224 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -992,6 +992,15 @@ void resetmap(const char *newname, int newmode, int newtime = -1, bool notify =
|
||||
}
|
||||
if(m_teammode && !lastteammode) shuffleteams();
|
||||
if(m_arena) arenaround = 0;
|
||||
if(notify)
|
||||
{
|
||||
loopv(clients) if(clients[i]->type!=ST_EMPTY)
|
||||
{
|
||||
client *c = clients[i];
|
||||
c->mapchange();
|
||||
if(m_mp(smode)) sendspawn(c);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void nextcfgset(bool notify = true) // load next maprotation set
|
||||
@@ -1410,6 +1419,14 @@ void process(ENetPacket *packet, int sender, int chan) // sender may be -1
|
||||
break;
|
||||
}
|
||||
|
||||
case SV_PRIMARYWEAP:
|
||||
{
|
||||
int nextprimary = getint(p);
|
||||
cl->state.nextprimary = nextprimary;
|
||||
QUEUE_MSG;
|
||||
break;
|
||||
}
|
||||
|
||||
case SV_TRYSPAWN:
|
||||
if(cl->state.state!=CS_DEAD || !canspawn(cl)) break;
|
||||
if(cl->state.lastdeath) cl->state.respawn();
|
||||
|
||||
Reference in New Issue
Block a user