1
0
forked from mirrors/0ad

Complain if an RMS tries to revert the loading progress.

Also increase estimated mapgen time, refs 942a45372c, 0e0ed94926.

Differential Revision: https://code.wildfiregames.com/D1341
Proposed By: Vladislav in D1340
This was SVN commit r21400.
This commit is contained in:
elexis
2018-03-01 12:06:55 +00:00
parent 5ea7458671
commit 2be4293dff
2 changed files with 6 additions and 2 deletions
+5 -1
View File
@@ -214,7 +214,11 @@ void CMapGeneratorWorker::SetProgress(ScriptInterface::CxPrivate* pCxPrivate, in
// Copy data
CScopeLock lock(self->m_WorkerMutex);
self->m_Progress = progress;
if (progress >= self->m_Progress)
self->m_Progress = progress;
else
LOGWARNING("The random map script tried to reduce the loading progress from %d to %d", self->m_Progress, progress);
}
CParamNode CMapGeneratorWorker::GetTemplate(ScriptInterface::CxPrivate* pCxPrivate, const std::string& templateName)