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
This commit is contained in:
jason@long.name 2013-02-23 12:53:57 +00:00
parent 84fa05500b
commit d9d42b1af2
2 changed files with 2 additions and 2 deletions

View file

@ -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.

View file

@ -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];