Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
amylizzle authored May 23, 2024
1 parent 908815b commit f17b6a9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions OpenDreamClient/Rendering/DreamIcon.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ private set {
private int _animationFrame;
private TimeSpan _animationFrameTime = gameTiming.CurTime;
private List<AppearanceAnimation>? _appearanceAnimations;
private int _appearanceAnimationsLoops = 0;
private int _appearanceAnimationsLoops;
private Box2? _cachedAABB;

public DreamIcon(IGameTiming gameTiming, ClientAppearanceSystem appearanceSystem, int appearanceId,
Expand Down Expand Up @@ -90,8 +90,6 @@ public void StartAppearanceAnimation(IconAppearance endingAppearance, TimeSpan d
start = _appearanceAnimations[^1].Start + _appearanceAnimations[^1].Duration; //if it's not parallel, it's chained

_appearanceAnimations ??= new List<AppearanceAnimation>();
if(_appearanceAnimations.Count == 0) {//only valid on the first animation
Logger.Debug("setting loops to {0}", loops);
_appearanceAnimationsLoops = loops;
}

Expand Down

0 comments on commit f17b6a9

Please sign in to comment.