mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2025-12-22 07:10:25 -08:00
moveCard bug fix
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user