File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed
Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 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(* *)
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
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 ;
183185End ;
184186
256258
257259Procedure TOpenGL_Animation.SetAniSprite (Index: integer; AValue: TAniSprite);
258260Begin
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;
262264End ;
Original file line number Diff line number Diff line change 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(* *)
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
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 ;
183185End ;
184186
256258
257259Procedure TOpenGL_Animation.SetAniSprite (Index: integer; AValue: TAniSprite);
258260Begin
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;
262264End ;
You can’t perform that action at this time.
0 commit comments