Skip to content

Commit

Permalink
add macros REGAMEDLL_ADD
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaqtincha committed Dec 10, 2024
1 parent 03ae088 commit a12b9cb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions regamedll/dlls/bot/cs_bot_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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()
Expand Down
4 changes: 3 additions & 1 deletion regamedll/dlls/bot/cs_bot_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -269,4 +269,6 @@ inline bool AreBotsAllowed()
}

void PrintAllEntities();
void GetSpawnPositions();
#ifdef REGAMEDLL_ADD
void GetSpawnPositions();
#endif

0 comments on commit a12b9cb

Please sign in to comment.