1
0
forked from 0ad/0ad
0ad/binaries/data/mods
Dunedan b68a22ecdb Instantiate controller only for the host
This moves the check whether a player is the host out of
`LobbyGameRegistrationController` and only creates an instance of it in
`SetupWindow` if the player is the host.

This solves a problem with
`LobbyGameRegistrationController.onGameStart()` getting triggered by
players not being the host and sending unnecessary and invalid
changestate stanzas to XpartaMuPP.

Patch by: @Dunedan
Accepted by: @Stan
Differential Revision: https://code.wildfiregames.com/D5270
This was SVN commit r28148.
2024-07-10 06:20:51 +00:00
..
_test.dae/art
_test.gui/gui Get a promise when starting a GUIpage 2024-07-08 19:07:04 +00:00
_test.minimal Fix text alignment handling of spaces around wrapping. 2022-06-02 12:56:53 +00:00
_test.scriptinterface/promises Add files forgotten in f9114a87f2 2024-07-08 19:46:42 +00:00
_test.sim Fix 9fc6c3c897 - Set entity/template before deserializing. 2021-01-12 16:15:40 +00:00
_test.tex/art/textures Avoids a crash if a texture size is not a power of two. 2022-04-11 16:28:41 +00:00
_test.xero
mod Get a promise when starting a GUIpage 2024-07-08 19:07:04 +00:00
public Instantiate controller only for the host 2024-07-10 06:20:51 +00:00