Fix #8874: show a warning when a NewGRF scan is requested multiple times from the console (#9022)

This commit is contained in:
rubidium42
2021-04-12 20:53:04 +02:00
committed by GitHub
parent e722ea89f0
commit c4bccd4f70
3 changed files with 9 additions and 3 deletions

View File

@@ -1351,7 +1351,9 @@ DEF_CONSOLE_CMD(ConRescanNewGRF)
return true;
}
RequestNewGRFScan();
if (!RequestNewGRFScan()) {
IConsoleWarning("NewGRF scanning is already running. Please wait until completed to run again.");
}
return true;
}