1
0
Fork 0
Peter Nelson 2025-06-26 07:35:45 +00:00 committed by GitHub
commit b491f327ce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -153,6 +153,7 @@ static std::unique_ptr<GRFConfig> GetDefaultExtraGRFConfig()
gc->palette |= GRFP_GRF_DOS;
FillGRFDetails(*gc, false, BASESET_DIR);
gc->flags.Reset(GRFConfigFlag::InitOnly);
gc->flags.Set(GRFConfigFlag::System);
return gc;
}
@ -165,6 +166,7 @@ static std::unique_ptr<GRFConfig> GetBasesetExtraGRFConfig()
auto gc = std::make_unique<GRFConfig>(BaseGraphics::GetUsedSet()->GetOrCreateExtraConfig());
if (gc->param.empty()) gc->SetParameterDefaults();
gc->flags.Reset(GRFConfigFlag::InitOnly);
gc->flags.Set(GRFConfigFlag::System);
return gc;
}

View File

@ -319,7 +319,7 @@ static void ParamSet(ByteReader &buf)
/* Disable the read GRF if it is a static NewGRF. */
DisableStaticNewGRFInfluencingNonStaticNewGRFs(*c);
src1 = 0;
} else if (file == nullptr || c == nullptr || c->status == GCS_DISABLED) {
} else if (file == nullptr || c == nullptr || c->status == GCS_DISABLED || c->flags.Test(GRFConfigFlag::System)) {
src1 = 0;
} else if (src1 == 0xFE) {
src1 = c->version;