newmap fix

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3021 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2008-10-14 21:39:53 +00:00
parent 85a280482c
commit 619d88cbff
3 changed files with 8 additions and 5 deletions
+5 -2
View File
@@ -669,8 +669,9 @@ void resetmap()
int suicided = -1;
void startmap(const char *name) // called just after a map load
void startmap(const char *name, bool reset) // called just after a map load
{
s_strcpy(clientmap, name);
senditemstoserver = true;
// Added by Rick
if(m_botmode) BotManager.BeginMap(name);
@@ -683,9 +684,11 @@ void startmap(const char *name) // called just after a map load
spawncycle = -1;
if(m_valid(gamemode) && !m_mp(gamemode)) respawnself();
else findplayerstart(player1);
if(!reset) return;
player1->frags = player1->flagscore = player1->deaths = player1->lifesequence = 0;
loopv(players) if(players[i]) players[i]->frags = players[i]->flagscore = players[i]->deaths = players[i]->lifesequence = 0;
s_strcpy(clientmap, name);
if(editmode) toggleedit();
showscores(false);
intermission = false;