fix bot respawning times

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5726 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2010-10-08 14:26:44 +00:00
parent 6d1e7ec484
commit 7fe64e123c
+2 -2
View File
@@ -97,12 +97,12 @@ void CBot::Think()
// Bot is dead?
if (m_pMyEnt->state == CS_DEAD)
{
if(lastmillis-m_pMyEnt->lastaction<1200)
if(lastmillis-m_pMyEnt->respawnoffset<1200)
{
m_pMyEnt->move = 0;
moveplayer(m_pMyEnt, 1, true);
}
else if (!m_arena && lastmillis-m_pMyEnt->lastaction>5000)
else if (!m_arena && lastmillis-m_pMyEnt->respawnoffset>5000)
Spawn();
SendBotInfo();