1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-15 00:05:02 +02:00

* saving and resuming games should work!

(loading from the main menu, saving using "save [NAME]" command)
This commit is contained in:
Michał W. Urbańczyk
2009-01-12 20:05:56 +00:00
parent 3474fdaf05
commit b895fa35cb
15 changed files with 81 additions and 29 deletions

View File

@ -32,12 +32,14 @@ SharedMem sm;
CClient::CClient(void)
{
IObjectInterface::cb = this;
serv = NULL;
gs = NULL;
cb = NULL;
}
CClient::CClient(CConnection *con, StartInfo *si)
{
IObjectInterface::cb = this;
newGame(con,si);
}
CClient::~CClient(void)
@ -703,7 +705,6 @@ int CClient::getSelectedHero()
void CClient::newGame( CConnection *con, StartInfo *si )
{
timeHandler tmh;
IObjectInterface::cb = this;
CGI->state = new CGameState();
tlog0 <<"\tGamestate: "<<tmh.getDif()<<std::endl;
serv = con;