This Trac instance is not used for development anymore!

We migrated our development workflow to git and Gitea.
To test the future redirection, replace trac by ariadne in the page URL.

Changeset 21836 for ps


Ignore:
Timestamp:
06/05/18 14:24:30 (7 years ago)
Author:
elexis
Message:

Fix an OOS on rejoin after doubleclicking on the StartGame button, fixes #5199, refs #5162.

Prevents changes to the gamesettings after the game was started, so as to use the correct map seed when generating the random map terrain for rejoiners.
D1558 will prevent the UI bug #5206 and FSM error from doubleclicking on StartGame.

Differential Revision: https://code.wildfiregames.com/D1562
Tested and accepted by: temple

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ps/trunk/source/network/NetServer.cpp

    r21832 r21836  
    12181218    CNetServerWorker& server = session->GetServer();
    12191219
     1220    // Changing the settings after gamestart is not implemented and would cause an Out-of-sync error.
     1221    // This happened when doubleclicking on the startgame button.
     1222    if (server.m_State != SERVER_STATE_PREGAME)
     1223        return true;
     1224
    12201225    if (session->GetGUID() == server.m_HostGUID)
    12211226    {
Note: See TracChangeset for help on using the changeset viewer.