fixing the respawn time evasion... it was never fixed :|

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5787 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Rafael Barreto
2010-10-23 21:04:23 +00:00
parent 7750a584c5
commit 1c4485dba5
2 changed files with 19 additions and 7 deletions
+8 -1
View File
@@ -618,6 +618,8 @@ inline const char * spawn_message()
// in large, friendly letters.
}
int waiting_permission = 0;
bool tryrespawn()
{
if ( m_mp(gamemode) && bad_map() )
@@ -647,7 +649,12 @@ bool tryrespawn()
else lastspawnattempt = lastmillis;
return false;
}
respawnself();
if (lastmillis > waiting_permission)
{
waiting_permission = lastmillis + 1000;
respawnself();
}
else hudeditf(HUDMSG_TIMER, "\f%s", spawn_message());
return true;
}
else lastspawnattempt = lastmillis;