*** 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:
Lee Salzman
2007-08-10 21:19:05 +00:00
parent 50160606e6
commit b070ead7b9
4 changed files with 20 additions and 2 deletions
+17
View File
@@ -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();