Editor: Respect -w command line flag.

This commit is contained in:
Andreas Haas 2017-12-29 20:10:15 +01:00
parent a663dbfdd8
commit 3434971496
No known key found for this signature in database
GPG key ID: B5FFAE1B65FBD2E1

View file

@ -755,8 +755,10 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
if (editor) { if (editor) {
Engine::get_singleton()->set_editor_hint(true); Engine::get_singleton()->set_editor_hint(true);
main_args.push_back("--editor"); main_args.push_back("--editor");
init_maximized = true; if (!init_windowed) {
video_mode.maximized = true; init_maximized = true;
video_mode.maximized = true;
}
use_custom_res = false; use_custom_res = false;
} }