v0.6.2a: corrected a few small remaining issues + manifest commit again
This commit is contained in:
parent
3a8f148164
commit
d7cc01c856
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.shatteredpixel.shatteredpixeldungeon"
|
||||
android:versionCode="223"
|
||||
android:versionCode="224"
|
||||
android:versionName="0.6.2a"
|
||||
android:installLocation="auto">
|
||||
|
||||
|
|
|
@ -152,8 +152,11 @@ public class ShatteredPixelDungeon extends Game {
|
|||
Sample.INSTANCE.enable( soundFx() );
|
||||
Sample.INSTANCE.volume( SFXVol()/10f );
|
||||
|
||||
TelephonyManager mgr = (TelephonyManager)getSystemService(TELEPHONY_SERVICE);
|
||||
mgr.listen(Music.callMute, PhoneStateListener.LISTEN_CALL_STATE);
|
||||
//versions lower than this require READ_PHONE_STATE permission
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
|
||||
TelephonyManager mgr = (TelephonyManager) getSystemService(TELEPHONY_SERVICE);
|
||||
mgr.listen(Music.callMute, PhoneStateListener.LISTEN_CALL_STATE);
|
||||
}
|
||||
|
||||
Sample.INSTANCE.load(
|
||||
Assets.SND_CLICK,
|
||||
|
|
|
@ -174,7 +174,7 @@ public class CavesLevel extends RegularLevel {
|
|||
@Override
|
||||
public void update() {
|
||||
|
||||
if (visible = Dungeon.level.heroFOV[pos]) {
|
||||
if (visible = (pos < Dungeon.level.heroFOV.length && Dungeon.level.heroFOV[pos])) {
|
||||
|
||||
super.update();
|
||||
|
||||
|
|
|
@ -184,7 +184,7 @@ public class CityLevel extends RegularLevel {
|
|||
|
||||
@Override
|
||||
public void update() {
|
||||
if (visible = Dungeon.level.heroFOV[pos]) {
|
||||
if (visible = (pos < Dungeon.level.heroFOV.length && Dungeon.level.heroFOV[pos])) {
|
||||
super.update();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -181,7 +181,7 @@ public class HallsLevel extends RegularLevel {
|
|||
@Override
|
||||
public void update() {
|
||||
|
||||
if (visible = Dungeon.level.heroFOV[pos]) {
|
||||
if (visible = (pos < Dungeon.level.heroFOV.length && Dungeon.level.heroFOV[pos])) {
|
||||
|
||||
super.update();
|
||||
|
||||
|
|
|
@ -137,7 +137,7 @@ public class ChangesScene extends PixelScene {
|
|||
changes.addButton( new ChangeButton(Icons.get(Icons.PREFS), Messages.get(this, "misc"),
|
||||
"_-_ Improved the formatting of older updates in the changes list. More information will be added to fill these out in future updates.\n\n" +
|
||||
"_-_ Slightly reduced the chance for items to appear in locked chests.\n\n" +
|
||||
"_-_ Game music now mutes itself during phone calls"));
|
||||
"_-_ Game music now mutes itself during phone calls on android 6.0+"));
|
||||
|
||||
changes.addButton( new ChangeButton(new Image(Assets.SPINNER, 144, 0, 16, 16), Messages.get(this, "bugfixes"),
|
||||
"Fixed (caused by 0.6.2):\n" +
|
||||
|
|
Loading…
Reference in New Issue
Block a user