Something more fixed

This commit is contained in:
ThomasCharester committed 2026-11-10 12:46:44 +03:00
1 parent 7d236d14cd
commit d810ea00b6
676 files changed
+176711 -316402

No files matched your search

@@ -9,6 +9,7 @@ namespace Code.OfficeGame.BattleMode.Actions
return new WaitBattleActionData
{
TotalFrames = TotalFrames,
Finished = Finished,
WaitFrames = WaitFrames,
StartedWaiting = StartedWaiting
};
@@ -16,9 +17,10 @@ namespace Code.OfficeGame.BattleMode.Actions
public override void RestoreSnapshot(BattleActionData snapshot)
{
TotalFrames = snapshot.TotalFrames;
if (snapshot is not WaitBattleActionData waitSnapshot) return;
TotalFrames = snapshot.TotalFrames;
Finished = snapshot.Finished;
WaitFrames = waitSnapshot.WaitFrames;
StartedWaiting = waitSnapshot.StartedWaiting;