mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r21130) -Fix [FS#4208-ish]: under some circumstances static (disabled/influencing) NewGRFs weren't properly ignored which could cause a desync
This commit is contained in:
parent
f5bf3e7997
commit
ba91fef610
@ -5073,7 +5073,7 @@ static void SkipIf(ByteReader *buf)
|
|||||||
|
|
||||||
GRFConfig *c = GetGRFConfig(cond_val, mask);
|
GRFConfig *c = GetGRFConfig(cond_val, mask);
|
||||||
|
|
||||||
if (c != NULL && HasBit(c->flags, GCF_STATIC) && !HasBit(_cur_grfconfig->flags, GCF_STATIC) && c->status != GCS_DISABLED && _networking) {
|
if (c != NULL && HasBit(c->flags, GCF_STATIC) && !HasBit(_cur_grfconfig->flags, GCF_STATIC) && _networking) {
|
||||||
DisableStaticNewGRFInfluencingNonStaticNewGRFs(c);
|
DisableStaticNewGRFInfluencingNonStaticNewGRFs(c);
|
||||||
c = NULL;
|
c = NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user