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 21830 for ps


Ignore:
Timestamp:
05/29/18 04:50:33 (7 years ago)
Author:
elexis
Message:

Save oos_dump.dat too when saving oos_dump.txt.
Saves time to reproduce the binary simstate or provides data that may be otherwise irreproducible, refs #5162.

Differential Revision: https://code.wildfiregames.com/D1544
Reviewed By: temple

File:
1 edited

Legend:

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

    r20519 r21830  
    1 /* Copyright (C) 2017 Wildfire Games.
     1/* Copyright (C) 2018 Wildfire Games.
    22 * This file is part of 0 A.D.
    33 *
     
    124124    file.close();
    125125
     126    std::ofstream binfile (OsString(oosdumpPath.ChangeExtension(L".dat")).c_str(), std::ofstream::out | std::ofstream::trunc | std::ofstream::binary);
     127    m_Simulation2.SerializeState(binfile);
     128    binfile.close();
     129
    126130    std::stringstream playerNamesString;
    127131    std::vector<CStr> playerNamesStrings;
Note: See TracChangeset for help on using the changeset viewer.