watabou / pixel-dungeon

Traditional roguelike game with pixel-art graphics and simple interface
GNU General Public License v3.0
3.59k stars 1.2k forks source link

Add missing casts and remove FloatMath methods calls #93

Open IriaSomobu opened 5 years ago

IriaSomobu commented 5 years ago

This will remove compile errors on modern javac.

Note: android.util.FloatMath class was deprecated and all its methods was removed in API version 23 and above.

Also adding (Object) cast before bundle.getCollection() call will supress Incompatible types error in Android Studio.

LingASDJ commented 2 years ago

Good,But The Pixel Dungeon Not Update.

IriaSomobu commented 2 years ago

@LingASDJ yep, but maybe this code will help someone else