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

@@ -27,6 +27,7 @@ namespace Code.OfficeGame.BattleMode.Actions
return new MovementBattleActionData
{
TotalFrames = TotalFrames,
Finished = Finished,
Position = Position,
Rotation = Rotation,
Path = Path,
@@ -40,10 +41,11 @@ namespace Code.OfficeGame.BattleMode.Actions
public override void RestoreSnapshot(BattleActionData snapshot)
{
TotalFrames = snapshot.TotalFrames;
if (snapshot is not MovementBattleActionData moveSnapshot) return;
TotalFrames = snapshot.TotalFrames;
Finished = snapshot.Finished;
CurrentFrame = moveSnapshot.CurrentFrame;
Position = moveSnapshot.Position;
Rotation = moveSnapshot.Rotation;