mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-15 06:05:10 +00:00
fix inactive cues + bg block check (#741)
small oversight, crazy how "- 2" and a single variable can literally stop the game from working
This commit is contained in:
parent
2d42699a0d
commit
b72440ca3c
1 changed files with 2 additions and 2 deletions
|
@ -175,7 +175,7 @@ namespace HeavenStudio.Games
|
||||||
public override void OnGameSwitch(double beat)
|
public override void OnGameSwitch(double beat)
|
||||||
{
|
{
|
||||||
List<RiqEntity> events = GameManager.instance.Beatmap.Entities.FindAll(e => e.datamodel.Split('/')[0] == "cannery");
|
List<RiqEntity> events = GameManager.instance.Beatmap.Entities.FindAll(e => e.datamodel.Split('/')[0] == "cannery");
|
||||||
List<RiqEntity> cans = events.FindAll(e => e.datamodel == "cannery/can" && beat > e.beat && beat < e.beat + 1);
|
List<RiqEntity> cans = events.FindAll(e => e.datamodel == "cannery/can" && beat > e.beat - 2 && beat < e.beat + 1);
|
||||||
foreach (var can in cans) {
|
foreach (var can in cans) {
|
||||||
SendCan(can.beat);
|
SendCan(can.beat);
|
||||||
}
|
}
|
||||||
|
@ -189,7 +189,7 @@ namespace HeavenStudio.Games
|
||||||
}
|
}
|
||||||
RiqEntity bgEvent = events.FindLast(e => e.datamodel == "cannery/backgroundModifiers" && e.beat < beat);
|
RiqEntity bgEvent = events.FindLast(e => e.datamodel == "cannery/backgroundModifiers" && e.beat < beat);
|
||||||
if (bgEvent != null) {
|
if (bgEvent != null) {
|
||||||
var e = alarmEvent;
|
var e = bgEvent;
|
||||||
BackgroundModifiers(e.beat, e.length, e["startSpeed"], e["endSpeed"], e["ease"]);
|
BackgroundModifiers(e.beat, e.length, e["startSpeed"], e["endSpeed"], e["ease"]);
|
||||||
} else {
|
} else {
|
||||||
BackgroundModifiers(0, 0, 10, 10, (int)Util.EasingFunction.Ease.Instant);
|
BackgroundModifiers(0, 0, 10, 10, (int)Util.EasingFunction.Ease.Instant);
|
||||||
|
|
Loading…
Reference in a new issue