Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Pierre Kim
OpenRCT2-mod
Commits
c95a9e4c
Commit
c95a9e4c
authored
7 years ago
by
Michael Steenbeek
Browse files
Options
Download
Email Patches
Plain Diff
Fix typo in 'separator'
parent
9d686db8
develop
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/openrct2/core/Path.cpp
+4
-4
src/openrct2/core/Path.cpp
src/openrct2/windows/EditorObjectSelection.cpp
+3
-3
src/openrct2/windows/EditorObjectSelection.cpp
with
7 additions
and
7 deletions
+7
-7
src/openrct2/core/Path.cpp
+
4
-
4
View file @
c95a9e4c
...
...
@@ -86,18 +86,18 @@ namespace Path
const
utf8
*
GetFileName
(
const
utf8
*
path
)
{
const
utf8
*
lastPathSep
e
rator
=
nullptr
;
const
utf8
*
lastPathSep
a
rator
=
nullptr
;
for
(
const
utf8
*
ch
=
path
;
*
ch
!=
'\0'
;
ch
++
)
{
if
(
*
ch
==
*
PATH_SEPARATOR
||
*
ch
==
'/'
)
{
lastPathSep
e
rator
=
ch
;
lastPathSep
a
rator
=
ch
;
}
}
return
lastPathSep
e
rator
==
nullptr
?
return
lastPathSep
a
rator
==
nullptr
?
path
:
lastPathSep
e
rator
+
1
;
lastPathSep
a
rator
+
1
;
}
std
::
string
GetFileNameWithoutExtension
(
const
std
::
string
&
path
)
...
...
This diff is collapsed.
Click to expand it.
src/openrct2/windows/EditorObjectSelection.cpp
+
3
-
3
View file @
c95a9e4c
...
...
@@ -258,7 +258,7 @@ enum {
DDIX_FILTER_WW
,
DDIX_FILTER_TT
,
DDIX_FILTER_CUSTOM
,
DDIX_FILTER_SEP
E
RATOR
,
DDIX_FILTER_SEP
A
RATOR
,
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_SEP
E
RATOR
]
=
0
;
gDropdownItemsFormat
[
DDIX_FILTER_SEP
A
RATOR
]
=
0
;
gDropdownItemsFormat
[
DDIX_FILTER_SELECTED
]
=
STR_TOGGLE_OPTION
;
gDropdownItemsFormat
[
DDIX_FILTER_NONSELECTED
]
=
STR_TOGGLE_OPTION
;
gDropdownItemsArgs
[
DDIX_FILTER_SEP
E
RATOR
]
=
STR_NONE
;
gDropdownItemsArgs
[
DDIX_FILTER_SEP
A
RATOR
]
=
STR_NONE
;
gDropdownItemsArgs
[
DDIX_FILTER_SELECTED
]
=
STR_SELECTED_ONLY
;
gDropdownItemsArgs
[
DDIX_FILTER_NONSELECTED
]
=
STR_NON_SELECTED_ONLY
;
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help