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
8cc5ee28
Commit
8cc5ee28
authored
Jun 25, 2012
by
Max-Wilhelm Bruker
Browse files
disallow face-down cards in other zones than the table
parent
e326f961
Changes
1
Hide whitespace changes
Inline
Side-by-side
common/server_player.cpp
View file @
8cc5ee28
...
@@ -374,6 +374,8 @@ Response::ResponseCode Server_Player::moveCard(GameEventStorage &ges, Server_Car
...
@@ -374,6 +374,8 @@ Response::ResponseCode Server_Player::moveCard(GameEventStorage &ges, Server_Car
Server_Card
*
card
=
cardsToMove
[
cardIndex
].
first
;
Server_Card
*
card
=
cardsToMove
[
cardIndex
].
first
;
const
CardToMove
*
thisCardProperties
=
cardProperties
.
value
(
card
);
const
CardToMove
*
thisCardProperties
=
cardProperties
.
value
(
card
);
bool
faceDown
=
thisCardProperties
->
has_face_down
()
?
thisCardProperties
->
face_down
()
:
card
->
getFaceDown
();
bool
faceDown
=
thisCardProperties
->
has_face_down
()
?
thisCardProperties
->
face_down
()
:
card
->
getFaceDown
();
if
(
!
targetzone
->
hasCoords
())
faceDown
=
false
;
int
originalPosition
=
cardsToMove
[
cardIndex
].
second
;
int
originalPosition
=
cardsToMove
[
cardIndex
].
second
;
int
position
=
startzone
->
removeCard
(
card
);
int
position
=
startzone
->
removeCard
(
card
);
...
...
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