Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#3193 closed enhancement (fixed)

[PATCH] Allow resigning only once per turn

Reported by: elexis Owned by: sanderd17
Priority: If Time Permits Milestone: Alpha 19
Component: UI & Simulation Keywords:
Cc: Patch:

Description

You can send multiple resign messages per turn. If the game is laggy it becomes apparent sometimes. Reproduce by hosting with 2 instances of 0ad. Pause with the first one, resign multiple times with the other one, then unpause. You will see the player was defeated multiple times. (You cant reproduce with 1 instance alone because the resign button unpauses the game).

In order to fix the problem, set a variable to true if the resign button was pressed once and then disable the button afterwards (or prevent any further messages to be sent then).

Attachments (1)

t3193_resign_only_once.patch (709 bytes ) - added by elexis 9 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 by elexis, 9 years ago

Keywords: patch review added
Milestone: BacklogAlpha 19
Summary: Allow resigning only once per turn[PATCH] Allow resigning only once per turn

by elexis, 9 years ago

comment:2 by sanderd17, 9 years ago

Owner: set to sanderd17
Resolution: fixed
Status: newclosed

In 16582:

Disable resign button after resigning once. Patch by elexis. Fixes #3193

comment:3 by sanderd17, 9 years ago

Keywords: patch review removed
Note: See TracTickets for help on using tickets.