Skip to content

Commit

Permalink
C4Game: Fix leftover references to Landscape
Browse files Browse the repository at this point in the history
  • Loading branch information
Fulgen301 committed Nov 15, 2023
1 parent 8ef5264 commit b6214f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/C4Game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,7 @@ bool C4Game::Execute() // Returns true if the game is over
if (HaltCount) return false;

#ifdef DEBUGREC
Landscape.DoRelights();
std::ranges::for_each(Sections, &C4Landscape::DoRelights, &C4Section::Landscape);
#endif

// Execute the control
Expand Down Expand Up @@ -821,7 +821,7 @@ bool C4Game::Execute() // Returns true if the game is over
#ifdef DEBUGREC
AddDbgRec(RCT_Block, "eGame", 6);

Landscape.DoRelights();
std::ranges::for_each(Sections, &C4Landscape::DoRelights, &C4Section::Landscape);
#endif

return true;
Expand Down

0 comments on commit b6214f4

Please sign in to comment.