Skip to content

Commit 89b9fb9

Browse files
FIX: Sprite name change was not stored (does not affect the game)
1 parent a05c112 commit 89b9fb9

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

cd_data_extractor/uopengl_animation.pas

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
(******************************************************************************)
22
(* uopengl_animation.pas 15.09.2021 *)
33
(* *)
4-
(* Version : 0.09 *)
4+
(* Version : 0.10 *)
55
(* *)
66
(* Author : Uwe Schächterle (Corpsman) *)
77
(* *)
@@ -34,6 +34,7 @@
3434
(* 0.07 - Support für OnAnimationOverflowEvent Callback *)
3535
(* 0.08 - Tag, ResetSprite *)
3636
(* 0.09 - OnAnimationOverflowEvent for user decisions *)
37+
(* 0.10 - FIX: changing only sprite name was not stored *)
3738
(* *)
3839
(******************************************************************************)
3940

@@ -177,8 +178,9 @@
177178
And (a.FrameCount = b.FrameCount)
178179
And (a.FramesPerRow = b.FramesPerRow)
179180
And (a.FramesPerCol = b.FramesPerCol)
181+
// TODO: Warum ist .name hier ausgeschlossen ? (Siehe Bugfix in "SetAniSprite")
180182
// And (a.Fname = b.Fname) -- Dynamisch erstellte Daten werden nicht verglichen
181-
// And (a.SpriteIndex = b.SpriteIndex) -- Dynamisch erstellte Daten werden nicht verglichen
183+
// And (a.SpriteIndex = b.SpriteIndex) -- Dynamisch erstellte Daten werden nicht verglichen
182184
;
183185
End;
184186

@@ -256,7 +258,7 @@
256258

257259
Procedure TOpenGL_Animation.SetAniSprite(Index: integer; AValue: TAniSprite);
258260
Begin
259-
If fSprites[index] = AValue Then exit;
261+
If (fSprites[index] = AValue) And (fSprites[index].Name = AValue.Name) Then exit;
260262
fchanged := true;
261263
fSprites[index] := AValue;
262264
End;

uopengl_animation.pas

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
(******************************************************************************)
22
(* uopengl_animation.pas 15.09.2021 *)
33
(* *)
4-
(* Version : 0.09 *)
4+
(* Version : 0.10 *)
55
(* *)
66
(* Author : Uwe Schächterle (Corpsman) *)
77
(* *)
@@ -34,6 +34,7 @@
3434
(* 0.07 - Support für OnAnimationOverflowEvent Callback *)
3535
(* 0.08 - Tag, ResetSprite *)
3636
(* 0.09 - OnAnimationOverflowEvent for user decisions *)
37+
(* 0.10 - FIX: changing only sprite name was not stored *)
3738
(* *)
3839
(******************************************************************************)
3940

@@ -177,8 +178,9 @@
177178
And (a.FrameCount = b.FrameCount)
178179
And (a.FramesPerRow = b.FramesPerRow)
179180
And (a.FramesPerCol = b.FramesPerCol)
181+
// TODO: Warum ist .name hier ausgeschlossen ? (Siehe Bugfix in "SetAniSprite")
180182
// And (a.Fname = b.Fname) -- Dynamisch erstellte Daten werden nicht verglichen
181-
// And (a.SpriteIndex = b.SpriteIndex) -- Dynamisch erstellte Daten werden nicht verglichen
183+
// And (a.SpriteIndex = b.SpriteIndex) -- Dynamisch erstellte Daten werden nicht verglichen
182184
;
183185
End;
184186

@@ -256,7 +258,7 @@
256258

257259
Procedure TOpenGL_Animation.SetAniSprite(Index: integer; AValue: TAniSprite);
258260
Begin
259-
If fSprites[index] = AValue Then exit;
261+
If (fSprites[index] = AValue) And (fSprites[index].Name = AValue.Name) Then exit;
260262
fchanged := true;
261263
fSprites[index] := AValue;
262264
End;

0 commit comments

Comments
 (0)