Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Commit

Permalink
Stop update ordering shenanigans meaning a spurious path request is made
Browse files Browse the repository at this point in the history
  • Loading branch information
Causeless committed Nov 7, 2023
1 parent 847807b commit 81a8361
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Activities/GameActivity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ void GameActivity::Clear()

m_StartingGold = 0;
m_FogOfWarEnabled = false;
m_RequireClearPathToOrbit = true;
m_RequireClearPathToOrbit = false;

m_DefaultFogOfWar = -1;
m_DefaultRequireClearPathToOrbit = -1;
Expand Down
4 changes: 2 additions & 2 deletions Menus/SceneEditorGUI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ void SceneEditorGUI::Clear()
m_pObjectToBlink = 0;
m_BrainSkyPath.clear();
m_BrainSkyPathCost = 0;
m_RequireClearPathToOrbit = true;
m_RequireClearPathToOrbit = false;
m_PathRequest.reset();
}

Expand Down Expand Up @@ -130,7 +130,7 @@ int SceneEditorGUI::Create(Controller *pController, FeatureSets featureSet, int
m_RevealTimer.SetRealTimeLimitMS(100);

//Check if we need to check for a clear path to orbit
m_RequireClearPathToOrbit = true;
m_RequireClearPathToOrbit = false;
GameActivity * gameActivity = dynamic_cast<GameActivity *>(g_ActivityMan.GetActivity());
if (gameActivity) {
m_RequireClearPathToOrbit = gameActivity->GetRequireClearPathToOrbit();
Expand Down

0 comments on commit 81a8361

Please sign in to comment.