From d9d42b1af2d7ecc9cf16b4a943986b354b132f3e Mon Sep 17 00:00:00 2001 From: "jason@long.name" Date: Sat, 23 Feb 2013 12:53:57 +0000 Subject: [PATCH] cleanup: change Animate.Smoke.AniThis to a boolean array since it only holds true/false values git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@571 d9718cc8-9f43-0410-858b-315f434eb58c --- src/micropolisj/engine/Animate.java | 2 +- src/micropolisj/engine/MapScanner.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/micropolisj/engine/Animate.java b/src/micropolisj/engine/Animate.java index 1967211..c36bc96 100644 --- a/src/micropolisj/engine/Animate.java +++ b/src/micropolisj/engine/Animate.java @@ -128,7 +128,7 @@ class Animate { // There are eight full Industry-zone images in the tiles bank. // This array indicates which of those eight zones have an animation. - static int [] AniThis = { 1, 0, 1, 1, 0, 0, 1, 1 }; + static boolean [] AniThis = {true, false, true, true, false, false, true, true }; // Up to two tiles can be animated. Arrays DX1,DXY indicate the relative // position of the first animated tile. diff --git a/src/micropolisj/engine/MapScanner.java b/src/micropolisj/engine/MapScanner.java index e48d92c..1756d75 100644 --- a/src/micropolisj/engine/MapScanner.java +++ b/src/micropolisj/engine/MapScanner.java @@ -843,7 +843,7 @@ class MapScanner return; int z = ((cchr9 - IZB) / 8) % 8; - if (Smoke.AniThis[z] != 0) + if (Smoke.AniThis[z]) { int xx = xpos + Smoke.DX1[z]; int yy = ypos + Smoke.DY1[z];