From 9ebfb0c49135184218bc03d8c71fe13851b0ae5f Mon Sep 17 00:00:00 2001 From: JappaWakka Date: Sun, 21 Aug 2022 19:29:26 +0200 Subject: [PATCH] Current season can now be set in map tags --- P3D/World/LevelLoader.vb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/P3D/World/LevelLoader.vb b/P3D/World/LevelLoader.vb index 1f8590418..2d8c7e1f7 100644 --- a/P3D/World/LevelLoader.vb +++ b/P3D/World/LevelLoader.vb @@ -1016,6 +1016,14 @@ Screen.Level.EnvironmentType = 0 End If + If TagExists(Tags, "Season") = True Then + If CInt(GetTag(Tags, "Season")) <> -1 Then + World.setSeason = CType(CInt(GetTag(Tags, "Season")), World.Seasons) + Else + World.setSeason = Nothing + End If + End If + If TagExists(Tags, "Weather") = True Then Screen.Level.WeatherType = CInt(GetTag(Tags, "Weather")) Else