Commit 25de2421 authored by Max-Wilhelm Bruker's avatar Max-Wilhelm Bruker
Browse files

controller change bug fix

parent b702a124
...@@ -330,8 +330,8 @@ ResponseCode Server_Player::moveCard(CommandContainer *cont, Server_CardZone *st ...@@ -330,8 +330,8 @@ ResponseCode Server_Player::moveCard(CommandContainer *cont, Server_CardZone *st
publicCardName = card->getName(); publicCardName = card->getName();
int oldCardId = card->getId(); int oldCardId = card->getId();
if (faceDown) if (faceDown || (targetzone->getPlayer() != startzone->getPlayer()))
card->setId(newCardId()); card->setId(targetzone->getPlayer()->newCardId());
card->setFaceDown(faceDown); card->setFaceDown(faceDown);
// The player does not get to see which card he moved if it moves between two parts of hidden zones which // The player does not get to see which card he moved if it moves between two parts of hidden zones which
......
...@@ -225,4 +225,4 @@ void Servatrice::statusUpdate() ...@@ -225,4 +225,4 @@ void Servatrice::statusUpdate()
execSqlQuery(query); execSqlQuery(query);
} }
const QString Servatrice::versionString = "Servatrice 0.20110124"; const QString Servatrice::versionString = "Servatrice 0.20110126";
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment