diff options
author | Loic Blot <loic.blot@unix-experience.fr> | 2021-04-28 12:48:13 +0200 |
---|---|---|
committer | Loïc Blot <nerzhul@users.noreply.github.com> | 2021-05-03 19:49:19 +0200 |
commit | 258101a91031f3ff9ee01a974030b02529ffdac0 (patch) | |
tree | f57e2b95910b26a40d15c6b623084b8d93a528a9 /src/main.cpp | |
parent | 74125a74d34e9b1a003107d4ef6b95b8483d2464 (diff) | |
download | hax-minetest-server-258101a91031f3ff9ee01a974030b02529ffdac0.tar.gz hax-minetest-server-258101a91031f3ff9ee01a974030b02529ffdac0.zip |
refacto: RenderingEngine is now better hidden
* No more access to the singleton instance from everywhere (RenderingEngine::get_instance dropped)
* RenderingEngine::get_timer_time is now non static
* RenderingEngine::draw_menu_scene is now non static
* RenderingEngine::draw_scene is now non static
* RenderingEngine::{initialize,finalize} are now non static
* RenderingEngine::run is now non static
* RenderingEngine::getWindowSize now have a static helper. It was mandatory to hide the global get_instance access
Diffstat (limited to '')
-rw-r--r-- | src/main.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp index 39b441d2c..7f96836b5 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -225,8 +225,7 @@ int main(int argc, char *argv[]) return run_dedicated_server(game_params, cmd_args) ? 0 : 1; #ifndef SERVER - ClientLauncher launcher; - retval = launcher.run(game_params, cmd_args) ? 0 : 1; + retval = ClientLauncher().run(game_params, cmd_args) ? 0 : 1; #else retval = 0; #endif |