forked from 0ad/0ad
Disable resign button after resigning once. Patch by elexis. Fixes #3193
This was SVN commit r16582.
This commit is contained in:
parent
8099fe01de
commit
a959fcf337
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user