Skip to content

Commit

Permalink
Haha funny refactoring goes Exception
Browse files Browse the repository at this point in the history
  • Loading branch information
kinsi55 committed Feb 11, 2021
1 parent 6e22a33 commit 2b97f40
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
7 changes: 6 additions & 1 deletion Middlewares/MovementScriptProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public void OnDisable() {
frameIndex = 0;
}

for(;;frameIndex++) {
for(;;) {
if(targetFrame.startTime > currentAnimationTime) {
break;
} else if(targetFrame.endTime <= currentAnimationTime) {
Expand All @@ -153,6 +153,11 @@ public void OnDisable() {
}
break;
}

if(++frameIndex >= loadedScript.frames.Count) {
frameIndex = 0;
break;
}
}

return true;
Expand Down
4 changes: 2 additions & 2 deletions Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.2.1")]
[assembly: AssemblyFileVersion("0.2.1")]
[assembly: AssemblyVersion("0.2.2")]
[assembly: AssemblyFileVersion("0.2.2")]
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"id": "Camera2",
"name": "Camera2",
"author": "Kinsi55",
"version": "0.2.1",
"version": "0.2.2",
"description": "If Camera Plus is so good, why is there no Camera Plus 2?",
"gameVersion": "1.13",
"dependsOn": {
Expand Down

0 comments on commit 2b97f40

Please sign in to comment.