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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user