From 4c65ff52e4463d5521d345705612a0593e22220d Mon Sep 17 00:00:00 2001 From: emacser0 Date: Wed, 4 Oct 2023 19:55:11 +0900 Subject: [PATCH] Fix some typos in source. --- editor/project_converter_3_to_4.cpp | 6 +++--- modules/bmp/image_loader_bmp.cpp | 2 +- platform/android/os_android.cpp | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/editor/project_converter_3_to_4.cpp b/editor/project_converter_3_to_4.cpp index d6ed5eb995f..bea865af138 100644 --- a/editor/project_converter_3_to_4.cpp +++ b/editor/project_converter_3_to_4.cpp @@ -113,7 +113,7 @@ public: // GDScript keywords. RegEx keyword_gdscript_tool = RegEx("^tool"); RegEx keyword_gdscript_export_single = RegEx("^export"); - RegEx keyword_gdscript_export_mutli = RegEx("([\t]+)export\\b"); + RegEx keyword_gdscript_export_multi = RegEx("([\t]+)export\\b"); RegEx keyword_gdscript_onready = RegEx("^onready"); RegEx keyword_gdscript_remote = RegEx("^remote func"); RegEx keyword_gdscript_remotesync = RegEx("^remotesync func"); @@ -2548,7 +2548,7 @@ void ProjectConverter3To4::rename_gdscript_keywords(Vector &source_l line = reg_container.keyword_gdscript_export_single.sub(line, "@export", true); } if (line.contains("export")) { - line = reg_container.keyword_gdscript_export_mutli.sub(line, "$1@export", true); + line = reg_container.keyword_gdscript_export_multi.sub(line, "$1@export", true); } if (line.contains("onready")) { line = reg_container.keyword_gdscript_onready.sub(line, "@onready", true); @@ -2607,7 +2607,7 @@ Vector ProjectConverter3To4::check_for_rename_gdscript_keywords(Vector p_image, // Next we apply some color scaling going from a variable value space to a 256 value space. // This may be simplified some but left as is for legibility. - // float scaled_value = unscaled_value * byte_max_value / color_channel_maxium_value + rounding_offset; + // float scaled_value = unscaled_value * byte_max_value / color_channel_maximum_value + rounding_offset; float f0 = b0 * 255.0f / static_cast(p_header.bmp_bitfield.red_max) + 0.5f; float f1 = b1 * 255.0f / static_cast(p_header.bmp_bitfield.green_max) + 0.5f; float f2 = b2 * 255.0f / static_cast(p_header.bmp_bitfield.blue_max) + 0.5f; diff --git a/platform/android/os_android.cpp b/platform/android/os_android.cpp index df8a9893c3a..92dc5f909f6 100644 --- a/platform/android/os_android.cpp +++ b/platform/android/os_android.cpp @@ -60,10 +60,10 @@ String _remove_symlink(const String &dir) { // Change directory to the external data directory. chdir(dir.utf8().get_data()); // Get the actual directory without the potential symlink. - char dir_name_wihout_symlink[2048]; - getcwd(dir_name_wihout_symlink, 2048); + char dir_name_without_symlink[2048]; + getcwd(dir_name_without_symlink, 2048); // Convert back to a String. - String dir_without_symlink(dir_name_wihout_symlink); + String dir_without_symlink(dir_name_without_symlink); // Restore original current directory. chdir(current_dir_name); return dir_without_symlink;