dripton/Slugathon — Issue #158: Sync problems with points and acquiring angels
Author: dripton
Created: 2012-01-11 16:14:55+00:00
State: open
Labels: bug, game, network

At the end of a battle, sometimes a client disagrees with the server about the number of points the winner gained from the battle. This can result in disagreements about whether the winner can acquire an angel, which can result in hangs if the server is waiting for an Acquire or DoNotAcquire and the client isn't sending it.

I really don't like the CanAcquire and AddPoints actions, or the Game.master flag. It should be possible for the client side to independently compute how many points it earns and whether the winner can acquire angels, without being led by the nose. The only complication is that the client can't compute half points for a dead player's other legions until it knows their contents. But the server can send RevealLegion for all of the dead player's legions, and then the client can proceed with awarding half points.