getPollutionValue: use isFire and isRadioactive instead of comparing numbers
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@784 d9718cc8-9f43-0410-858b-315f434eb58c
This commit is contained in:
parent
9c209fa6b2
commit
6f3029fc92
1 changed files with 4 additions and 7 deletions
|
@ -1037,14 +1037,11 @@ public class Micropolis
|
||||||
if (tile >= LTRFBASE)
|
if (tile >= LTRFBASE)
|
||||||
return 50; //light traffic
|
return 50; //light traffic
|
||||||
|
|
||||||
if (tile < ROADBASE)
|
if (isFire(tile))
|
||||||
{
|
return 90; //active fire
|
||||||
if (tile > FIREBASE)
|
|
||||||
return 90; //active fire
|
|
||||||
|
|
||||||
if (tile >= RADTILE)
|
if (isRadioactive(tile))
|
||||||
return 255; //radioactivity
|
return 255; //radioactivity
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue