From 7fe64e123cc8b823fad4f571b9846f3b215e5b48 Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Fri, 8 Oct 2010 14:26:44 +0000 Subject: [PATCH] fix bot respawning times git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5726 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/bot/bot.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/src/bot/bot.cpp b/source/src/bot/bot.cpp index c480f344..fd8a0a9a 100644 --- a/source/src/bot/bot.cpp +++ b/source/src/bot/bot.cpp @@ -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();