mirror of
https://github.com/luanti-org/luanti.git
synced 2025-11-30 20:53:45 +01:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user