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
f6a340dd
Commit
f6a340dd
authored
Aug 14, 2010
by
Max-Wilhelm Bruker
Browse files
moveCard bug fix
parent
168d184e
Changes
1
Hide whitespace changes
Inline
Side-by-side
common/server_protocolhandler.cpp
View file @
f6a340dd
...
@@ -524,7 +524,7 @@ ResponseCode Server_ProtocolHandler::moveCard(Server_Game *game, Server_Player *
...
@@ -524,7 +524,7 @@ ResponseCode Server_ProtocolHandler::moveCard(Server_Game *game, Server_Player *
// Collision detection
// Collision detection
if
(
targetzone
->
hasCoords
())
if
(
targetzone
->
hasCoords
())
for
(
int
i
=
0
;
i
<
targetzone
->
cards
.
size
();
++
i
)
for
(
int
i
=
0
;
i
<
targetzone
->
cards
.
size
();
++
i
)
if
((
targetzone
->
cards
[
i
]
->
getX
()
==
x
)
&&
(
targetzone
->
cards
[
i
]
->
getY
()
==
y
))
if
((
targetzone
->
cards
[
i
]
->
getX
()
==
x
)
&&
(
targetzone
->
cards
[
i
]
->
getY
()
==
y
)
&&
(
x
!=
-
1
)
)
return
RespContextError
;
return
RespContextError
;
int
position
=
-
1
;
int
position
=
-
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