소스 검색

Cleanup of preprocessor directives in main.cpp

Remove redundant set of preprocessor directives and combine duplicate if statements.
TechnicalSoup 3 년 전
부모
커밋
899057c710
1개의 변경된 파일0개의 추가작업 그리고 5개의 파일을 삭제
  1. 0 5
      main/main.cpp

+ 0 - 5
main/main.cpp

@@ -1195,11 +1195,6 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
 	if (editor) {
 		packed_data->set_disabled(true);
 		globals->set_disable_feature_overrides(true);
-	}
-#endif
-
-#ifdef TOOLS_ENABLED
-	if (editor) {
 		Engine::get_singleton()->set_editor_hint(true);
 		main_args.push_back("--editor");
 		if (!init_windowed) {