diff --git a/regamedll/dlls/bot/cs_bot_manager.cpp b/regamedll/dlls/bot/cs_bot_manager.cpp index a6d937869..6654b8efb 100644 --- a/regamedll/dlls/bot/cs_bot_manager.cpp +++ b/regamedll/dlls/bot/cs_bot_manager.cpp @@ -1146,6 +1146,7 @@ class CollectOverlappingAreas CCSBotManager::Zone *m_zone; }; +#ifdef REGAMEDLL_ADD LINK_ENTITY_TO_CLASS(info_spawn_point, CPointEntity, CCSPointEntity) inline bool IsFreeSpace(Vector vecOrigin, int iHullNumber, edict_t *pSkipEnt = nullptr) @@ -1303,6 +1304,7 @@ void GetSpawnPositions() CONSOLE_ECHO("Total spawns points: %i\n", totalSpawns); } +#endif // Search the map entities to determine the game scenario and define important zones. void CCSBotManager::ValidateMapData() diff --git a/regamedll/dlls/bot/cs_bot_manager.h b/regamedll/dlls/bot/cs_bot_manager.h index d86e57796..0d5e6e37d 100644 --- a/regamedll/dlls/bot/cs_bot_manager.h +++ b/regamedll/dlls/bot/cs_bot_manager.h @@ -269,4 +269,6 @@ inline bool AreBotsAllowed() } void PrintAllEntities(); -void GetSpawnPositions(); \ No newline at end of file +#ifdef REGAMEDLL_ADD +void GetSpawnPositions(); +#endif \ No newline at end of file