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

This was SVN commit r16582.
This commit is contained in:
sanderd17 2015-04-26 08:57:26 +00:00
parent 8099fe01de
commit a959fcf337

View File

@ -285,7 +285,9 @@ function resignGame(leaveGameAfterResign)
"type": "defeat-player", "type": "defeat-player",
"playerId": Engine.GetPlayerID() "playerId": Engine.GetPlayerID()
}); });
Engine.GetGUIObjectByName("menuResignButton").enabled = false;
global.music.setState(global.music.states.DEFEAT); global.music.setState(global.music.states.DEFEAT);
// Resume the game if not resigning. // Resume the game if not resigning.