Skip to content

Commit ae2880b

Browse files
committed
account for duration when refreshing future obstacles
1 parent 6baa854 commit ae2880b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Assets/__Scripts/MapEditor/Grid/Collections/BeatmapObjectContainerCollection.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,13 @@ public static void RefreshFutureObjectsPosition(float jsonTime)
392392
obj.RecomputeSongBpmTime();
393393
}
394394
}
395+
else if (collection is ObstacleGridContainer)
396+
{
397+
if ((obj as BaseObstacle).Duration + obj.JsonTime > jsonTime)
398+
{
399+
obj.RecomputeSongBpmTime();
400+
}
401+
}
395402
}
396403
foreach (var container in collection.LoadedContainers)
397404
{

0 commit comments

Comments
 (0)