Skip to content

Commit 9317f8c

Browse files
committed
fix: Fix bug #2003001
1 parent 719c737 commit 9317f8c

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

Source/Orts.Formats.Msts/EnvironmentFile.cs

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -125,29 +125,29 @@ public SkyLayer(STFReader stf)
125125
}),
126126
})),
127127
})),
128-
})),
129-
new STFReader.TokenProcessor("world_shader", () =>
130-
{
131-
stf.MustMatch("(");
132-
TextureMode = stf.ReadString();
133-
stf.ParseBlock(new[]
128+
new STFReader.TokenProcessor("world_shader", () =>
134129
{
135-
new STFReader.TokenProcessor("terrain_texslots", () =>
130+
stf.MustMatch("(");
131+
TextureMode = stf.ReadString();
132+
stf.ParseBlock(new[]
136133
{
137-
stf.MustMatch("(");
138-
stf.ReadInt(null) /*Count*/;
139-
stf.ParseBlock(new[]
134+
new STFReader.TokenProcessor("terrain_texslots", () =>
140135
{
141-
new STFReader.TokenProcessor("terrain_texslot", () =>
136+
stf.MustMatch("(");
137+
stf.ReadInt(null) /*Count*/;
138+
stf.ParseBlock(new[]
142139
{
143-
stf.MustMatch("(");
144-
TextureName = stf.ReadString();
145-
stf.SkipRestOfBlock();
146-
}),
147-
});
148-
}),
149-
});
150-
}),
140+
new STFReader.TokenProcessor("terrain_texslot", () =>
141+
{
142+
stf.MustMatch("(");
143+
TextureName = stf.ReadString();
144+
stf.SkipRestOfBlock();
145+
}),
146+
});
147+
}),
148+
});
149+
}),
150+
})),
151151
});
152152
}
153153
}

0 commit comments

Comments
 (0)