validHotZone filters hotZone count.
This commit is contained in:
@@ -111,12 +111,13 @@ public enum ZoneManager {
|
|||||||
|
|
||||||
// Returns the number of available hotZones
|
// Returns the number of available hotZones
|
||||||
// remaining in this cycle (1am)
|
// remaining in this cycle (1am)
|
||||||
|
|
||||||
public static int availableHotZones() {
|
public static int availableHotZones() {
|
||||||
|
|
||||||
int count = 0;
|
int count = 0;
|
||||||
|
|
||||||
for (Zone zone : ZoneManager.macroZones)
|
for (Zone zone : ZoneManager.macroZones)
|
||||||
if (zone.hasBeenHotzone == false)
|
if (ZoneManager.validHotZone(zone))
|
||||||
count = count + 1;
|
count = count + 1;
|
||||||
|
|
||||||
return count;
|
return count;
|
||||||
|
|||||||
Reference in New Issue
Block a user