Skip to content

Commit a5fca96

Browse files
committed
accept some BOT fixes from ReGameDLL_CS
1 parent de23649 commit a5fca96

34 files changed

Lines changed: 1289 additions & 1467 deletions

dlls/bot/cs_bot.h

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@ class CCSBot: public CBot
749749
const CNavNode *m_navNodeList;
750750
CNavNode *m_currentNode;
751751
NavDirType m_generationDir;
752-
int m_analyzeIter;
752+
NavAreaList::iterator m_analyzeIter;
753753

754754
enum ProcessType
755755
{
@@ -1203,11 +1203,8 @@ class CollectRetreatSpotsFunctor
12031203
bool operator()(CNavArea *area)
12041204
{
12051205
// collect all the hiding spots in this area
1206-
const HidingSpotList *list = area->GetHidingSpotList ();
1207-
1208-
FOR_EACH_LL ((*list), it)
1206+
for (auto const spot : *area->GetHidingSpotList())
12091207
{
1210-
const HidingSpot *spot = (*list)[it];
12111208

12121209
if (m_count >= MAX_SPOTS)
12131210
break;

0 commit comments

Comments
 (0)