mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-15 00:05:02 +02:00
Redid stack artifacts. Broken save compatibility. Added serializer support for boost::variant and sending CStackInstace* over network by implicitly passing IDs. Moved seeds and checksum to StartInfo. Various minor changes.
This commit is contained in:
@ -333,15 +333,12 @@ void CClient::newGame( CConnection *con, StartInfo *si )
|
||||
c << myPlayers;
|
||||
|
||||
|
||||
ui32 seed, sum;
|
||||
si32 seedPostInit;
|
||||
c >> si >> sum >> seed >> seedPostInit;
|
||||
c >> si;
|
||||
tlog0 <<"\tSending/Getting info to/from the server: "<<tmh.getDiff()<<std::endl;
|
||||
tlog0 << "\tUsing random seed: "<<seed << std::endl;
|
||||
|
||||
gs = const_cast<CGameInfo*>(CGI)->state;
|
||||
gs->scenarioOps = si;
|
||||
gs->init(si, sum, seed, seedPostInit);
|
||||
gs->init(si);
|
||||
tlog0 <<"Initializing GameState (together): "<<tmh.getDiff()<<std::endl;
|
||||
|
||||
if(gs->map)
|
||||
|
Reference in New Issue
Block a user