修复 生病后仍然继续工作可能性

Fix #138
This commit is contained in:
ZouJin 2023-11-21 01:00:26 +08:00
parent c259f4e9cb
commit 9944a13c5e

View File

@ -283,13 +283,13 @@ namespace VPet_Simulator.Core
playSwitchAnimat(Core.Save.Mode, newmod); playSwitchAnimat(Core.Save.Mode, newmod);
Core.Save.Mode = newmod; Core.Save.Mode = newmod;
}
//看情况播放停止工作动画 //看情况播放停止工作动画
if (newmod == GameSave.ModeType.Ill && State == WorkingState.Work) if (Core.Save.Mode == GameSave.ModeType.Ill && State == WorkingState.Work)
{ {
WorkTimer.Stop(); WorkTimer.Stop();
} }
} }
}
private void playSwitchAnimat(GameSave.ModeType before, GameSave.ModeType after) private void playSwitchAnimat(GameSave.ModeType before, GameSave.ModeType after)
{ {
if (!(DisplayType.Type == GraphType.Default || DisplayType.Type == GraphType.Switch_Down || DisplayType.Type == GraphType.Switch_Up)) if (!(DisplayType.Type == GraphType.Default || DisplayType.Type == GraphType.Switch_Down || DisplayType.Type == GraphType.Switch_Up))