Don't score cities with zero farmers next to them.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@387 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: AtlantiManager.java,v 1.14 2001/10/18 20:57:21 mdb Exp $
|
||||
// $Id: AtlantiManager.java,v 1.15 2001/10/18 23:11:03 mdb Exp $
|
||||
|
||||
package com.threerings.venison;
|
||||
|
||||
@@ -424,6 +424,11 @@ public class VenisonManager
|
||||
Log.info("Counted city [cityClaim=" + cityClaim +
|
||||
", counts=" + StringUtil.toString(pcount) + "].");
|
||||
|
||||
// ignore this city if no one has any farmers nearby
|
||||
if (max == 0) {
|
||||
continue;
|
||||
}
|
||||
|
||||
// now score four points for every player that has the max
|
||||
for (int i = 0; i < pcount.length; i++) {
|
||||
if (pcount[i] == max) {
|
||||
|
||||
Reference in New Issue
Block a user