Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Games
KShisen
Commits
8434f2e5
Commit
8434f2e5
authored
Jun 04, 2021
by
Frederik Schwarzer
Browse files
constness
parent
1bb38f7c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/board.cpp
View file @
8434f2e5
...
...
@@ -1758,13 +1758,13 @@ bool Board::isSolvable(bool restore)
auto
const
tile1
=
TilePos
(
p
.
front
().
path
().
front
().
x
(),
p
.
front
().
path
().
front
().
y
());
auto
const
tile2
=
TilePos
(
p
.
front
().
path
().
back
().
x
(),
p
.
front
().
path
().
back
().
y
());
if
(
!
tilesMatch
(
field
(
tile1
),
field
(
tile2
)))
{
auto
errMessage
=
QStringLiteral
(
"Removing unmatched tiles: (%1,%2) => %3 (%4,%5) => %6"
)
.
arg
(
p
.
front
().
path
().
front
().
x
())
.
arg
(
p
.
front
().
path
().
front
().
y
())
.
arg
(
field
(
tile1
))
.
arg
(
p
.
front
().
path
().
back
().
x
())
.
arg
(
p
.
front
().
path
().
back
().
y
())
.
arg
(
field
(
tile2
));
auto
const
errMessage
=
QStringLiteral
(
"Removing unmatched tiles: (%1,%2) => %3 (%4,%5) => %6"
)
.
arg
(
p
.
front
().
path
().
front
().
x
())
.
arg
(
p
.
front
().
path
().
front
().
y
())
.
arg
(
field
(
tile1
))
.
arg
(
p
.
front
().
path
().
back
().
x
())
.
arg
(
p
.
front
().
path
().
back
().
y
())
.
arg
(
field
(
tile2
));
qCCritical
(
KSHISEN_General
)
<<
errMessage
;
}
setField
(
tile1
,
EMPTY
);
...
...
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