(svn r22820) -Codechange: perform a full (re)draw cycle in the first draw during progress instead of waiting 200ms

This commit is contained in:
rubidium
2011-08-24 12:18:53 +00:00
parent 4557af2fce
commit 7496bd66e7
6 changed files with 32 additions and 13 deletions

View File

@@ -1787,7 +1787,13 @@ struct ScanProgressWindow : public Window {
void UpdateNewGRFScanStatus(uint num, const char *name)
{
free(this->last_name);
this->last_name = strdup(name);
if (name == NULL) {
char buf[256];
GetString(buf, STR_NEWGRF_SCAN_ARCHIVES, lastof(buf));
this->last_name = strdup(buf);
} else {
this->last_name = strdup(name);
}
this->scanned = num;
if (num > _settings_client.gui.last_newgrf_count) _settings_client.gui.last_newgrf_count = num;