Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
ea5666c4
Commit
ea5666c4
authored
Oct 20, 2015
by
Fabio Bas
Browse files
fix #1652 ; fix #467
parent
613f7129
Changes
1
Hide whitespace changes
Inline
Side-by-side
common/server_cardzone.cpp
View file @
ea5666c4
...
...
@@ -147,7 +147,12 @@ int Server_CardZone::getFreeGridColumn(int x, int y, const QString &cardName, bo
if
(
x
==
-
1
)
{
if
(
!
dontStackSameName
&&
freePilesMap
[
y
].
contains
(
cardName
))
{
x
=
(
freePilesMap
[
y
].
value
(
cardName
)
/
3
)
*
3
;
if
(
!
coordMap
.
contains
(
x
))
if
(
coordMap
.
contains
(
x
)
&&
(
coordMap
[
x
]
->
getFaceDown
()
||
!
coordMap
[
x
]
->
getAttachedCards
().
isEmpty
()))
{
// don't pile up on: 1. facedown cards 2. cards with attached cards
}
else
if
(
!
coordMap
.
contains
(
x
))
return
x
;
else
if
(
!
coordMap
.
contains
(
x
+
1
))
return
x
+
1
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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