From 31aebc743faaf2a5f496f3d23a1c140e407b4f52 Mon Sep 17 00:00:00 2001 From: james Date: Tue, 3 Apr 2007 20:16:48 +0000 Subject: [PATCH] Only count a huge penalty for the team if there's no chair on the team if the minimum number of judges per team is greater than 1. If the minimum is 1, then essentially the "willing chair" stuff should get ignored. --- admin/judges_sa.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/admin/judges_sa.php b/admin/judges_sa.php index 78d0ed4..3538bb4 100644 --- a/admin/judges_sa.php +++ b/admin/judges_sa.php @@ -183,9 +183,10 @@ function judges_cost_function($annealer, $bucket_id, $ids) if(!in_array($l, $j['languages'])) $cost += 25; } } - /* Huge penalty for a team without a willing chair */ - if(!$have_chair) $cost += 40; - + /* Huge penalty for a team without a willing chair, but only if the min judges per team >1 */ + if(!$have_chair && $config['min_judges_per_team']>1) + $cost += 40; + // TRACE("Team $bucket_id, cost is $cost\n"); return $cost;