mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-29 00:41:38 +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:
@ -99,6 +99,12 @@ void startGameFromFile(const std::string &fname)
|
||||
{
|
||||
StartInfo si;
|
||||
CLoadFile out(fname);
|
||||
if(!out.sfile || !*out.sfile)
|
||||
{
|
||||
tlog1 << "Failed to open startfile, falling back to the main menu!\n";
|
||||
GH.curInt = new CGPreGame;
|
||||
return;
|
||||
}
|
||||
out >> si;
|
||||
while(GH.topInt())
|
||||
GH.popIntTotally(GH.topInt());
|
||||
|
Reference in New Issue
Block a user