mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fix typo in 'separator'
This commit is contained in:
parent
9d686db86c
commit
c95a9e4c9b
|
@ -86,18 +86,18 @@ namespace Path
|
||||||
|
|
||||||
const utf8 * GetFileName(const utf8 * path)
|
const utf8 * GetFileName(const utf8 * path)
|
||||||
{
|
{
|
||||||
const utf8 * lastPathSeperator = nullptr;
|
const utf8 * lastPathSeparator = nullptr;
|
||||||
for (const utf8 * ch = path; *ch != '\0'; ch++)
|
for (const utf8 * ch = path; *ch != '\0'; ch++)
|
||||||
{
|
{
|
||||||
if (*ch == *PATH_SEPARATOR || *ch == '/')
|
if (*ch == *PATH_SEPARATOR || *ch == '/')
|
||||||
{
|
{
|
||||||
lastPathSeperator = ch;
|
lastPathSeparator = ch;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return lastPathSeperator == nullptr ?
|
return lastPathSeparator == nullptr ?
|
||||||
path :
|
path :
|
||||||
lastPathSeperator + 1;
|
lastPathSeparator + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string GetFileNameWithoutExtension(const std::string &path)
|
std::string GetFileNameWithoutExtension(const std::string &path)
|
||||||
|
|
|
@ -258,7 +258,7 @@ enum {
|
||||||
DDIX_FILTER_WW,
|
DDIX_FILTER_WW,
|
||||||
DDIX_FILTER_TT,
|
DDIX_FILTER_TT,
|
||||||
DDIX_FILTER_CUSTOM,
|
DDIX_FILTER_CUSTOM,
|
||||||
DDIX_FILTER_SEPERATOR,
|
DDIX_FILTER_SEPARATOR,
|
||||||
DDIX_FILTER_SELECTED,
|
DDIX_FILTER_SELECTED,
|
||||||
DDIX_FILTER_NONSELECTED,
|
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
|
// Track manager cannot select multiple, so only show selection filters if not in track manager
|
||||||
if (!(gScreenFlags & SCREEN_FLAGS_TRACK_MANAGER)) {
|
if (!(gScreenFlags & SCREEN_FLAGS_TRACK_MANAGER)) {
|
||||||
num_items = 7;
|
num_items = 7;
|
||||||
gDropdownItemsFormat[DDIX_FILTER_SEPERATOR] = 0;
|
gDropdownItemsFormat[DDIX_FILTER_SEPARATOR] = 0;
|
||||||
gDropdownItemsFormat[DDIX_FILTER_SELECTED] = STR_TOGGLE_OPTION;
|
gDropdownItemsFormat[DDIX_FILTER_SELECTED] = STR_TOGGLE_OPTION;
|
||||||
gDropdownItemsFormat[DDIX_FILTER_NONSELECTED] = 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_SELECTED] = STR_SELECTED_ONLY;
|
||||||
gDropdownItemsArgs[DDIX_FILTER_NONSELECTED] = STR_NON_SELECTED_ONLY;
|
gDropdownItemsArgs[DDIX_FILTER_NONSELECTED] = STR_NON_SELECTED_ONLY;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue