Fixed the bug in the description

If you use the @environment.setdaytime(int) command and go back to the main menu, the daytime does not change reset to the system time, causing the main menu to show the wrong background color (e.g. Morning while it is evening)
This commit is contained in:
JappaWakka 2022-05-24 22:20:58 +02:00
parent 40b9dc002a
commit c1759499e4
2 changed files with 3 additions and 3 deletions

View File

@ -45,8 +45,6 @@ Public Class PlayerInventory
Select Case Item.ItemType
Case Items.ItemTypes.Standard
Return ""
Case Items.ItemTypes.BattleItems
Return ""
Case Items.ItemTypes.KeyItems
Return ""
Case Items.ItemTypes.Machines
@ -59,6 +57,8 @@ Public Class PlayerInventory
Return ""
Case Items.ItemTypes.Pokéballs
Return ""
Case Items.ItemTypes.BattleItems
Return ""
End Select
Return ""

View File

@ -68,7 +68,7 @@ Public Class PressStartScreen
_shader = New GameDevCommon.Rendering.BasicShader()
CType(_shader.Effect, BasicEffect).LightingEnabled = False
_camera = New Scene.MainMenuCamera()
World.setDaytime = Nothing
Dim dayTime = World.GetTime
Select Case dayTime