From 3d2eaa62ff7877cc9ea56f6a9367a654b04310f0 Mon Sep 17 00:00:00 2001 From: "jason@long.name" Date: Fri, 6 Dec 2013 02:47:51 +0000 Subject: [PATCH] cleanup: do not use TileConstants. prefix when not needed git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@890 d9718cc8-9f43-0410-858b-315f434eb58c --- src/micropolisj/engine/Micropolis.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/micropolisj/engine/Micropolis.java b/src/micropolisj/engine/Micropolis.java index d48f3b4..e12db19 100644 --- a/src/micropolisj/engine/Micropolis.java +++ b/src/micropolisj/engine/Micropolis.java @@ -2202,7 +2202,7 @@ public class Micropolis int y = PRNG.nextInt(getHeight()); assert testBounds(x, y); - if (TileConstants.isVulnerable(getTile(x, y))) { + if (isVulnerable(getTile(x, y))) { if (PRNG.nextInt(4) != 0) { setTile(x, y, (char)(RUBBLE + BULLBIT + PRNG.nextInt(4))); } else { @@ -2218,7 +2218,7 @@ public class Micropolis int y = PRNG.nextInt(getHeight()); int t = getTile(x, y); - if (TileConstants.isArsonable(t)) { + if (isArsonable(t)) { setTile(x, y, (char)(FIRE + PRNG.nextInt(8))); crashLocation = new CityLocation(x, y); sendMessageAt(MicropolisMessage.FIRE_REPORT, x, y);