From e2c1a7eb6af091ad3f7ef6a861f8185cf70399aa Mon Sep 17 00:00:00 2001 From: "jason@long.name" Date: Mon, 18 Feb 2013 01:56:54 +0000 Subject: [PATCH] cleanup: setSmoke should use xpos,ypos properties instead of requiring them to be passed in as parameters git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@546 d9718cc8-9f43-0410-858b-315f434eb58c --- src/micropolisj/engine/MapScanner.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/micropolisj/engine/MapScanner.java b/src/micropolisj/engine/MapScanner.java index 02689b8..45f3fdc 100644 --- a/src/micropolisj/engine/MapScanner.java +++ b/src/micropolisj/engine/MapScanner.java @@ -477,6 +477,7 @@ class MapScanner /** * Place a 3x3 zone on to the map. + * @param base The first/north-western tile value for this zone. */ boolean zonePlop(int xpos, int ypos, int base) { @@ -800,9 +801,10 @@ class MapScanner } /* + * Add smoke to an industrial zone. * @param powerOn indicates whether the building has power */ - void setSmoke(int xpos, int ypos, boolean powerOn) + void setSmoke(boolean powerOn) { int cchr9 = city.map[ypos][xpos] & LOMASK; @@ -859,7 +861,7 @@ class MapScanner void doIndustrial(boolean powerOn) { city.indZoneCount++; - setSmoke(xpos, ypos, powerOn); + setSmoke(powerOn); int tpop = city.industrialZonePop(cchr9); city.indPop += tpop;