Skip to content

Commit

Permalink
Fix early disappear when negative offset+0.3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
yojohanshinwataikei committed Apr 4, 2021
1 parent 989d70a commit 27b26a1
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Assets/Misc/BuildTimestamp.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
637530627653201243
637531566874593832
6 changes: 6 additions & 0 deletions Assets/Misc/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
0.3.6

- 修复 AudioOffset 为绝对值较大的负数时 Note 提前消失的问题

---

0.3.5

- 你现在可以从负数时间开始播放谱面
Expand Down
2 changes: 1 addition & 1 deletion Assets/Scripts/Gameplay/Managers/ArcTimingManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ public bool ShouldTryRender(int timing, ArcTimingGroup timingGroup, int duration
}
if (timing + duration >= earliestRenderTime && timing <= latestRenderTime)
{
if (note && timing + duration + LostDelay < ArcGameplayManager.Instance.Timing - ArcAudioManager.Instance.AudioOffset)
if (note && timing + duration + LostDelay < ArcGameplayManager.Instance.Timing)
{
return false;
}
Expand Down
20 changes: 10 additions & 10 deletions Assets/_Scenes/ArcEditor.unity
Original file line number Diff line number Diff line change
Expand Up @@ -3843,7 +3843,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 103.06751, y: -16.687117}
m_AnchoredPosition: {x: 103.067505, y: -16.687117}
m_SizeDelta: {x: 206.13503, y: 33.374233}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &149707278
Expand Down Expand Up @@ -14486,10 +14486,10 @@ Camera:
m_FocalLength: 50
m_NormalizedViewPortRect:
serializedVersion: 2
x: 0.05208333
y: 0.059272725
width: 0.8958333
height: 0.8814545
x: 0.14450869
y: 0.16452442
width: 0.7109826
height: 0.6709511
near clip plane: 1
far clip plane: 10000
field of view: 50
Expand Down Expand Up @@ -25679,7 +25679,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 103.06751, y: -16.687117}
m_AnchoredPosition: {x: 103.067505, y: -16.687117}
m_SizeDelta: {x: 206.13503, y: 33.374233}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &920387962
Expand Down Expand Up @@ -29793,7 +29793,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 257.0675, y: -16.687117}
m_AnchoredPosition: {x: 257.0675, y: -16.687119}
m_SizeDelta: {x: 514.135, y: 33.374233}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1053558650
Expand Down Expand Up @@ -48086,7 +48086,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 103.06751, y: -16.687117}
m_AnchoredPosition: {x: 103.067505, y: -16.687117}
m_SizeDelta: {x: 206.13503, y: 33.374233}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1353939835
Expand Down Expand Up @@ -55753,7 +55753,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 103.06751, y: -16.687117}
m_AnchoredPosition: {x: 103.067505, y: -16.687117}
m_SizeDelta: {x: 206.13503, y: 33.374233}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1623844223
Expand Down Expand Up @@ -57092,7 +57092,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 257.0675, y: -66.06135}
m_AnchoredPosition: {x: 257.0675, y: -66.06134}
m_SizeDelta: {x: 514.135, y: 33.374233}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1669833493
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.5
bundleVersion: 0.3.6
preloadedAssets:
- {fileID: 4800000, guid: bb26ede1beb997943a7d6295fbf075d4, type: 3}
- {fileID: 4800000, guid: 1e340182228616b4ca7dad1e80f4d319, type: 3}
Expand Down

0 comments on commit 27b26a1

Please sign in to comment.