mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Merge pull request #2635 from Nordsoft91/loading-bar
Loading progress bar
This commit is contained in:
@@ -579,7 +579,7 @@ void CGameHandler::reinitScripting()
|
||||
#endif
|
||||
}
|
||||
|
||||
void CGameHandler::init(StartInfo *si)
|
||||
void CGameHandler::init(StartInfo *si, Load::ProgressAccumulator & progressTracking)
|
||||
{
|
||||
if (si->seedToBeUsed == 0)
|
||||
{
|
||||
@@ -589,7 +589,7 @@ void CGameHandler::init(StartInfo *si)
|
||||
gs = new CGameState();
|
||||
gs->preInit(VLC);
|
||||
logGlobal->info("Gamestate created!");
|
||||
gs->init(&mapService, si);
|
||||
gs->init(&mapService, si, progressTracking);
|
||||
logGlobal->info("Gamestate initialized!");
|
||||
|
||||
// reset seed, so that clients can't predict any following random values
|
||||
|
||||
Reference in New Issue
Block a user