mirror of https://github.com/dirtbags/moth.git
fix weighting bug with sandia tokens
This commit is contained in:
parent
ab838fb8a4
commit
038e707301
|
@ -88,12 +88,6 @@ BEGIN {
|
|||
close(fn)
|
||||
}
|
||||
|
||||
# Total points possible so far in this category
|
||||
if (! ((cat, points) in cat_pointval)) {
|
||||
cat_total[cat] += points
|
||||
cat_pointval[cat, points] = 1
|
||||
}
|
||||
|
||||
# Enumerate categories
|
||||
if (! (cat in seen_cats)) {
|
||||
seen_cats[cat] = 1
|
||||
|
@ -102,6 +96,11 @@ BEGIN {
|
|||
|
||||
# Points this team has in this category
|
||||
cat_points[hash, cat] += points
|
||||
|
||||
# Token-based categories can make cat_pointval irrelevant
|
||||
if (cat_points[hash, cat] > cat_total[cat]) {
|
||||
cat_total[cat] = cat_points[hash, cat]
|
||||
}
|
||||
}
|
||||
|
||||
END {
|
||||
|
|
Loading…
Reference in New Issue