File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22#include < util/log.hpp>
33#include < ui/common.hpp>
44
5+ static core::Game* _game = nullptr ;
6+
57void gameLvl_configureGameOptions (core::GameOptions* options) {
68 util::WriteToLog (" Configuring game options..." , " gameLvl_configureGameOptions()" );
79 gameLvl_gameOptions = options;
Original file line number Diff line number Diff line change 88
99// ==== IMPORTANT ====
1010// All variables/functions that will be used outside this file MUST begin with "gameLvl_"
11- // All variables/functions that will be used only in this file MUST begin with "_"
11+ // All variables/functions that will be used only in this file MUST be defined in the .cpp file, not here.
1212
1313#include < core/game.hpp>
1414
@@ -24,7 +24,5 @@ static std::atomic<bool> gameLvl_customMode = false;
2424void gameLvl_mainGameLoop ();
2525// The score of the game.
2626static int gameLvl_score = 0 ;
27- // The private Game object.
28- static core::Game* _game;
2927
3028#endif // _GAME_LEVEL_UI_HPP
You can’t perform that action at this time.
0 commit comments