don't send useless information in getGameState; fixed bug that caused an attached card to have undefined coordinates when its parent card was destroyed by conceding or leaving

This commit is contained in:
Max-Wilhelm Bruker
2012-01-30 00:21:47 +01:00
parent eb06d6b4ea
commit 5692addf54
4 changed files with 45 additions and 14 deletions

View File

@@ -897,7 +897,8 @@ Response::ResponseCode Server_ProtocolHandler::cmdConcede(const Command_Concede
return Response::RespContextError;
player->setConceded(true);
game->removeArrowsToPlayer(player);
game->removeArrowsToPlayer(ges, player);
game->unattachCards(ges, player);
player->clearZones();
Event_PlayerPropertiesChanged event;