v0.3.2a: also fixed a bug where ore veins would sparkle after being removed.

This commit is contained in:
Evan Debenham 2015-11-06 18:56:37 -05:00 committed by Evan Debenham
parent e2a57a0e31
commit acc249ec32

View File

@ -272,6 +272,12 @@ public class CavesLevel extends RegularLevel {
if ((delay -= Game.elapsed) <= 0) {
//pickaxe can remove the ore, should remove the sparkling too.
if (Dungeon.level.map[pos] != Terrain.WALL_DECO){
kill();
return;
}
delay = Random.Float();
PointF p = DungeonTilemap.tileToWorld( pos );