mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2025-10-30 08:11:25 +00:00
fix checkpoint powerup state
This commit is contained in:
parent
897f55f034
commit
8f8604774c
1 changed files with 4 additions and 2 deletions
|
|
@ -1744,8 +1744,10 @@ class MarbleWorld extends Scheduler {
|
|||
this.outOfBounds = false;
|
||||
this.deselectPowerUp(); // Always deselect first
|
||||
// Wait a bit to select the powerup to prevent immediately using it incase the user skipped the OOB screen by clicking
|
||||
if (this.checkpointHeldPowerup != null)
|
||||
this.schedule(this.timeState.currentAttemptTime + 0.5, () -> this.pickUpPowerUp(this.checkpointHeldPowerup));
|
||||
if (this.checkpointHeldPowerup != null) {
|
||||
var powerup = this.checkpointHeldPowerup;
|
||||
this.pickUpPowerUp(powerup);
|
||||
}
|
||||
AudioManager.playSound(ResourceLoader.getResource('data/sound/spawn_alternate.wav', ResourceLoader.getAudio, this.soundResources));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue