From 309d5c5c6d83066d1efee686993f44db3d639c32 Mon Sep 17 00:00:00 2001 From: s1lent Date: Wed, 5 Jun 2019 22:23:39 +0700 Subject: [PATCH] bot chatter mention of places: fix wrong entry in history --- regamedll/dlls/bot/cs_bot_chatter.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/regamedll/dlls/bot/cs_bot_chatter.h b/regamedll/dlls/bot/cs_bot_chatter.h index 1395c36c..642e6e28 100644 --- a/regamedll/dlls/bot/cs_bot_chatter.h +++ b/regamedll/dlls/bot/cs_bot_chatter.h @@ -304,8 +304,15 @@ inline int BotPhraseManager::FindPlaceIndex(Place where) const if (m_placeCount < MAX_PLACES_PER_MAP) { +#ifdef REGAMEDLL_FIXES + m_placeStatementHistory[m_placeCount].placeID = where; + m_placeStatementHistory[m_placeCount].timer.Invalidate(); + m_placeCount++; +#else m_placeStatementHistory[++m_placeCount].placeID = where; m_placeStatementHistory[++m_placeCount].timer.Invalidate(); +#endif // #ifdef REGAMEDLL_FIXES + return m_placeCount - 1; }