From c95a9e4c9bb45e3d1052a92949c70a3025ef340e Mon Sep 17 00:00:00 2001 From: Michael Steenbeek Date: Mon, 13 Nov 2017 16:25:31 +0100 Subject: [PATCH] Fix typo in 'separator' --- src/openrct2/core/Path.cpp | 8 ++++---- src/openrct2/windows/EditorObjectSelection.cpp | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/openrct2/core/Path.cpp b/src/openrct2/core/Path.cpp index 3285b210fa..002d293190 100644 --- a/src/openrct2/core/Path.cpp +++ b/src/openrct2/core/Path.cpp @@ -86,18 +86,18 @@ namespace Path const utf8 * GetFileName(const utf8 * path) { - const utf8 * lastPathSeperator = nullptr; + const utf8 * lastPathSeparator = nullptr; for (const utf8 * ch = path; *ch != '\0'; ch++) { if (*ch == *PATH_SEPARATOR || *ch == '/') { - lastPathSeperator = ch; + lastPathSeparator = ch; } } - return lastPathSeperator == nullptr ? + return lastPathSeparator == nullptr ? path : - lastPathSeperator + 1; + lastPathSeparator + 1; } std::string GetFileNameWithoutExtension(const std::string &path) diff --git a/src/openrct2/windows/EditorObjectSelection.cpp b/src/openrct2/windows/EditorObjectSelection.cpp index f2c7fb8930..60196ee8af 100644 --- a/src/openrct2/windows/EditorObjectSelection.cpp +++ b/src/openrct2/windows/EditorObjectSelection.cpp @@ -258,7 +258,7 @@ enum { DDIX_FILTER_WW, DDIX_FILTER_TT, DDIX_FILTER_CUSTOM, - DDIX_FILTER_SEPERATOR, + DDIX_FILTER_SEPARATOR, DDIX_FILTER_SELECTED, DDIX_FILTER_NONSELECTED, }; @@ -878,10 +878,10 @@ void window_editor_object_selection_mousedown(rct_window *w, rct_widgetindex wid // Track manager cannot select multiple, so only show selection filters if not in track manager if (!(gScreenFlags & SCREEN_FLAGS_TRACK_MANAGER)) { num_items = 7; - gDropdownItemsFormat[DDIX_FILTER_SEPERATOR] = 0; + gDropdownItemsFormat[DDIX_FILTER_SEPARATOR] = 0; gDropdownItemsFormat[DDIX_FILTER_SELECTED] = STR_TOGGLE_OPTION; gDropdownItemsFormat[DDIX_FILTER_NONSELECTED] = STR_TOGGLE_OPTION; - gDropdownItemsArgs[DDIX_FILTER_SEPERATOR] = STR_NONE; + gDropdownItemsArgs[DDIX_FILTER_SEPARATOR] = STR_NONE; gDropdownItemsArgs[DDIX_FILTER_SELECTED] = STR_SELECTED_ONLY; gDropdownItemsArgs[DDIX_FILTER_NONSELECTED] = STR_NON_SELECTED_ONLY; }