v0.4.2: couple of bugfixes

This commit is contained in:
Evan Debenham 2016-08-30 17:21:37 -04:00
parent 704b3b6fc8
commit c1167676b8
2 changed files with 4 additions and 3 deletions

View File

@ -214,7 +214,8 @@ public class RenderedText extends Image {
public void draw() {
if (needsRender)
render(this);
super.draw();
if (texture != null)
super.draw();
}
@Override

View File

@ -26,6 +26,7 @@ import com.shatteredpixel.shatteredpixeldungeon.effects.CellEmitter;
import com.shatteredpixel.shatteredpixeldungeon.effects.particles.ElmoParticle;
import com.shatteredpixel.shatteredpixeldungeon.levels.DeadEndLevel;
import com.shatteredpixel.shatteredpixeldungeon.levels.Terrain;
import com.shatteredpixel.shatteredpixeldungeon.messages.Languages;
import com.shatteredpixel.shatteredpixeldungeon.messages.Messages;
import com.shatteredpixel.shatteredpixeldungeon.scenes.GameScene;
import com.shatteredpixel.shatteredpixeldungeon.utils.GLog;
@ -53,8 +54,7 @@ public class Sign {
} else {
//if we are at depths 22-24 and in english
if (Dungeon.depth-21 < 3 &&
Messages.get(Sign.class, "burn").equals("As you try to read the sign it bursts into greenish flames.")){
if (Dungeon.depth-21 <= 3 && Messages.lang() == Languages.ENGLISH){
GameScene.show( new WndMessage(teaser_texts[Dungeon.depth-21]));
}