cleanup: rename fireZone to killZone
since the function is not about setting fire to a zone, rather it is about nullifying the ability of the zone git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@568 d9718cc8-9f43-0410-858b-315f434eb58c
This commit is contained in:
parent
1da609a5ce
commit
89d6839101
4 changed files with 4 additions and 11 deletions
|
@ -193,7 +193,7 @@ class MapScanner
|
|||
int c = city.map[ytem][xtem];
|
||||
if ((c & BURNBIT) != 0) {
|
||||
if ((c & ZONEBIT) != 0) {
|
||||
city.fireZone(xtem, ytem, c);
|
||||
city.killZone(xtem, ytem, c);
|
||||
if ((c & LOMASK) > IZB) { //explode
|
||||
city.makeExplosion(xtem, ytem);
|
||||
}
|
||||
|
@ -235,7 +235,7 @@ class MapScanner
|
|||
(t >= WOODS5 && t < FLOOD))
|
||||
{
|
||||
if ((c & ZONEBIT) != 0) {
|
||||
city.fireZone(xx, yy, c);
|
||||
city.killZone(xx, yy, c);
|
||||
}
|
||||
city.setTile(xx, yy, (char)(FLOOD + PRNG.nextInt(3)));
|
||||
}
|
||||
|
|
Reference in a new issue