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
dcc6677e
Commit
dcc6677e
authored
Apr 01, 2015
by
Fabio Bas
Browse files
fix #884
parent
fb49a886
Changes
1
Hide whitespace changes
Inline
Side-by-side
common/server_player.cpp
View file @
dcc6677e
...
...
@@ -439,7 +439,6 @@ Response::ResponseCode Server_Player::moveCard(GameEventStorage &ges, Server_Car
card
->
deleteLater
();
}
else
{
card
->
setFaceDown
(
faceDown
);
if
(
!
targetzone
->
hasCoords
())
{
y
=
0
;
card
->
resetState
();
...
...
@@ -465,6 +464,7 @@ Response::ResponseCode Server_Player::moveCard(GameEventStorage &ges, Server_Car
int
oldCardId
=
card
->
getId
();
if
((
faceDown
&&
(
startzone
!=
targetzone
))
||
(
targetzone
->
getPlayer
()
!=
startzone
->
getPlayer
()))
card
->
setId
(
targetzone
->
getPlayer
()
->
newCardId
());
card
->
setFaceDown
(
faceDown
);
// The player does not get to see which card he moved if it moves between two parts of hidden zones which
// are not being looked at.
...
...
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