[Freeciv-Dev] (PR#39358) vote in pregame
URL: http://bugs.freeciv.org/Ticket/Display.html?id=39358 When there is a vote while the pregame, and a player leaves or is lost, the players are renumbered. But votes are based on player_no, so the vote are messed up. For exemple: * A (player 0), B (player 1), C (player 2) are connected on the same server * B ask for cut C. * A leaves. The players are renumbered: B (player 0), C (player 1). Vote are not changed so C voted yes, instead of B. * B can vote a second time, and cut this poor C user Sad. He can ask a second vote too, without canceling the first. I don't see any easy solution, just some hack... So i prefer don't give you bad code lines :) _ Découvrez le Blog heroic Fantaisy d'Eragon! http://eragon-heroic-fantasy.spaces.live.com/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] (PR#39358) vote in pregame
URL: http://bugs.freeciv.org/Ticket/Display.html?id=39358 [EMAIL PROTECTED] - Wed Apr 25 07:18:33 2007]: When there is a vote while the pregame, and a player leaves or is lost, the players are renumbered. But votes are based on player_no, so the vote are messed up. For exemple: * A (player 0), B (player 1), C (player 2) are connected on the same server * B ask for cut C. * A leaves. The players are renumbered: B (player 0), C (player 1). Vote are not changed so C voted yes, instead of B. * B can vote a second time, and cut this poor C user Sad. He can ask a second vote too, without canceling the first. I don't see any easy solution, just some hack... So i prefer don't give you bad code lines :) _ Découvrez le Blog heroic Fantaisy d'Eragon! http://eragon-heroic-fantasy.spaces.live.com/ I wanted to clarify this cause I think I can fix it just need some more information. You are referring to a pregame vote only correct? If this is occuring during the game itself I will need some more information as the server doesn't actually reorder the player list during a disconnect if not in pregame. ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] (PR#39358) vote in pregame
URL: http://bugs.freeciv.org/Ticket/Display.html?id=39358 I wanted to clarify this cause I think I can fix it just need some more information. You are referring to a pregame vote only correct? If this is occuring during the game itself I will need some more information as the server doesn't actually reorder the player list during a disconnect if not in pregame. The players are not renumbered while the other game state (like running). While the pregame, players are removed when they leaves (or lose connection). But if a player is removed while the game is running, the player lose all his cities and units and he is marked as 'dead', but he isn't removed completely of the game. ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev