From 04e575bd23b0bbd8ca8f30d88430fc7e277736c1 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Mon, 21 Aug 2017 05:02:04 -0400 Subject: [PATCH] v0.6.1b: examining a tile that has never been seen no longer shows text This is to fix an exploit where players could search none-visible areas to determine where the map is. --- .../shatteredpixeldungeon/scenes/GameScene.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/GameScene.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/GameScene.java index 1f2147983..994b5cb81 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/GameScene.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/GameScene.java @@ -912,12 +912,10 @@ public class GameScene extends PixelScene { } public static void examineCell( Integer cell ) { - if (cell == null) { - return; - } - - if (cell < 0 || cell > Dungeon.level.length() || (!Dungeon.level.visited[cell] && !Dungeon.level.mapped[cell])) { - GameScene.show( new WndMessage( Messages.get(GameScene.class, "dont_know") ) ) ; + if (cell == null + || cell < 0 + || cell > Dungeon.level.length() + || (!Dungeon.level.visited[cell] && !Dungeon.level.mapped[cell])) { return; }