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
This commit is contained in:
jason@long.name 2013-02-18 01:56:54 +00:00
parent a92a5d6107
commit e2c1a7eb6a

View file

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