overlay-map: cleanup: use isResidentialZoneAny() instead of manual check
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@819 d9718cc8-9f43-0410-858b-315f434eb58c
This commit is contained in:
parent
f09ba76a23
commit
d14121b415
1 changed files with 1 additions and 2 deletions
|
@ -302,8 +302,7 @@ public class OverlayMapView extends JComponent
|
||||||
switch (mapState) {
|
switch (mapState) {
|
||||||
case RESIDENTIAL:
|
case RESIDENTIAL:
|
||||||
if (isZoneAny(tile) &&
|
if (isZoneAny(tile) &&
|
||||||
!isResidentialZone(tile) &&
|
!isResidentialZoneAny(tile))
|
||||||
!isHospitalOrChurch(tile))
|
|
||||||
{
|
{
|
||||||
tile = DIRT;
|
tile = DIRT;
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue