Skip to content

Commit

Permalink
0 length arc render/select issue+0.3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
yojohanshinwataikei committed Apr 6, 2021
1 parent d067898 commit efe397d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Assets/Misc/BuildTimestamp.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
637533026303858904
637533062993788379
5 changes: 5 additions & 0 deletions Assets/Misc/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
0.3.10

- 修复部分时间长度为 0 的 Arc 不显示的问题
- 修复长度为 0 的 Arc 在当前时间等于其时间时时无法被选中的问题

0.3.9

- 修复时间长度为 0 的 Arc 不显示的问题
Expand Down
4 changes: 2 additions & 2 deletions Assets/Scripts/Gameplay/Components/ArcArcRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ public void BuildSegments()
{
segmentCount = duration / segSize + (duration % segSize == 0 ? 0 : 1);
}
if (segmentCount == 0 && arc.XStart != arc.XEnd && arc.YStart != arc.YEnd)
if (segmentCount == 0 && (arc.XStart != arc.XEnd || arc.YStart != arc.YEnd))
{
segmentCount = 1;
}
Expand Down Expand Up @@ -762,7 +762,7 @@ public bool IsHitMyself(RaycastHit h)
if (arc.Judging || arc.IsVoid)
{
double timing = ((double)h.textureCoord.x) * (arc.EndTiming - arc.Timing) + arc.Timing;
return timing + ArcAudioManager.Instance.AudioOffset > ArcGameplayManager.Instance.Timing;
return timing + ArcAudioManager.Instance.AudioOffset + double.Epsilon >= ArcGameplayManager.Instance.Timing;
}
return true;
}
Expand Down
2 changes: 1 addition & 1 deletion ProjectSettings/ProjectSettings.asset
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ PlayerSettings:
16:10: 0
16:9: 1
Others: 0
bundleVersion: 0.3.9
bundleVersion: 0.3.10
preloadedAssets:
- {fileID: 4800000, guid: bb26ede1beb997943a7d6295fbf075d4, type: 3}
- {fileID: 4800000, guid: 1e340182228616b4ca7dad1e80f4d319, type: 3}
Expand Down

0 comments on commit efe397d

Please sign in to comment.