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
ceddral
fahrradwurstmond
Commits
fa51bbcc
Commit
fa51bbcc
authored
Sep 17, 2021
by
ceddral
Browse files
board: fix special duplication
parent
9412e7b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
board.go
View file @
fa51bbcc
...
...
@@ -561,6 +561,10 @@ func readpieces(filename string) (pieces []Piece, err error) {
fields
[
x
]
.
placeable
=
true
continue
}
if
rotation
!=
0
{
// only add specials once, do not duplicate for each rotation
continue
}
sm
:=
curPiece
.
fieldIdToSpecial
sm
[
id
]
=
append
(
sm
[
id
],
FSpecial
(
c
))
}
...
...
Write
Preview
Supports
Markdown
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