retry mapmodel downloads

Mapmodels which were not found once are put on a list and not tried to
be loaded again. With this commit, the list is cleared during a map load
if autodownload is enabled. This causes all missing models to be
downloaded.

Fixes issues with manually aborted autodownloads.
This commit is contained in:
ac-stef
2015-09-07 14:53:57 +02:00
parent 68c3ea43b1
commit 6c97202aa3
3 changed files with 8 additions and 0 deletions
+6
View File
@@ -305,6 +305,12 @@ void cleanupmodels()
enumerate(mdllookup, model *, m, m->cleanup());
}
void resetmdlnotfound()
{
enumeratek(mdlnotfound, const char *, m, delstring(m));
mdlnotfound.clear();
}
void getmapmodelattributes(char *name, char *attr)
{
const char *res = NULL;