forked from mirrors/0ad
Complain if an RMS tries to revert the loading progress.
Also increase estimated mapgen time, refs942a45372c,0e0ed94926. Differential Revision: https://code.wildfiregames.com/D1341 Proposed By: Vladislav in D1340 This was SVN commit r21400.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user