v0.3.1: tweaked existing scenes to support new audio functionality
This commit is contained in:
committed by
Evan Debenham
parent
d1d918290a
commit
efd506dda7
@@ -22,6 +22,7 @@ package com.shatteredpixel.shatteredpixeldungeon.scenes;
|
||||
|
||||
import com.shatteredpixel.shatteredpixeldungeon.Assets;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.ShatteredPixelDungeon;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.Statistics;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.Actor;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.items.Generator;
|
||||
@@ -183,7 +184,7 @@ public class InterlevelScene extends PixelScene {
|
||||
message.alpha( p );
|
||||
|
||||
if (mode == Mode.CONTINUE || (mode == Mode.DESCEND && Dungeon.depth == 1)) {
|
||||
Music.INSTANCE.volume( p );
|
||||
Music.INSTANCE.volume( p * (ShatteredPixelDungeon.musicVol()/10f));
|
||||
}
|
||||
if ((timeLeft -= Game.elapsed) <= 0) {
|
||||
Game.switchScene( GameScene.class );
|
||||
|
||||
Reference in New Issue
Block a user