Add setting to disable "big GUI" NewGRFs

This commit is contained in:
Jonathan G Rennison
2021-12-05 13:40:56 +00:00
parent 924ffb013f
commit ff714b7648
3 changed files with 10 additions and 0 deletions

View File

@@ -10525,6 +10525,9 @@ void LoadNewGRF(uint load_index, uint num_baseset)
*/
for (GRFConfig *c = _grfconfig; c != nullptr; c = c->next) {
if (c->status != GCS_NOT_FOUND) c->status = GCS_UNKNOWN;
if (_settings_client.gui.newgrf_disable_big_gui && c->ident.grfid == BSWAP32(0x52577801)) {
c->status = GCS_DISABLED;
}
}
_cur.spriteid = load_index;