Skip to content

Commit

Permalink
xrAICore: remove deprecated function
Browse files Browse the repository at this point in the history
  • Loading branch information
Xottab-DUTY committed Aug 10, 2018
1 parent 644408b commit eeeb1e7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions src/xrAICore/AISpaceBase.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@ class XRAICORE_API AISpaceBase
void patrol_path_storage_raw(IReader& stream);
void patrol_path_storage(IReader& stream);
void SetGameGraph(CGameGraph* gameGraph);
[[deprecated("This function is deprecated. Use AISpaceBase::SetGameGraph() instead.")]] void game_graph(
CGameGraph* g)
{
SetGameGraph(g);
}

public:
~AISpaceBase();
Expand Down
2 changes: 1 addition & 1 deletion src/xrGame/alife_spawn_registry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ void CALifeSpawnRegistry::load(IReader& file_stream, xrGUID* save_guid)

VERIFY(!m_game_graph);
m_game_graph = new CGameGraph(*m_chunk);
ai().game_graph(m_game_graph);
ai().SetGameGraph(m_game_graph);

R_ASSERT2((header().graph_guid() == ai().game_graph().header().guid()) || ignore_save_incompatibility(),
"Spawn doesn't correspond to the graph : REBUILD SPAWN!");
Expand Down

0 comments on commit eeeb1e7

Please sign in to comment.