some minor bug fixes; disallow deck storage commands to unauthenticated users

This commit is contained in:
Max-Wilhelm Bruker 2009-12-19 22:40:34 +01:00
parent 226837e98a
commit 06de6b1a6c
5 changed files with 23 additions and 3 deletions

View file

@ -157,7 +157,7 @@ void CardZone::moveAllToZone()
// Cards need to be moved in reverse order so that the other
// cards' list index doesn't change
for (int i = cards.size() - 1; i >= 0; i--)
player->sendGameCommand(new Command_MoveCard(-1, getName(), cards.at(i)->getId(), getName(), targetX));
player->sendGameCommand(new Command_MoveCard(-1, getName(), cards.at(i)->getId(), targetZone, targetX));
}
QPointF CardZone::closestGridPoint(const QPointF &point)