moveCard bug fix
This commit is contained in:
parent
168d184e8f
commit
f6a340ddf3
1 changed files with 1 additions and 1 deletions
|
@ -524,7 +524,7 @@ ResponseCode Server_ProtocolHandler::moveCard(Server_Game *game, Server_Player *
|
|||
// Collision detection
|
||||
if (targetzone->hasCoords())
|
||||
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;
|
||||
|
||||
int position = -1;
|
||||
|
|
Loading…
Reference in a new issue