Don't show hidden sides in the end-of-turns comparison

This commit is contained in:
Alexander van Gessel 2009-09-23 23:22:36 +01:00
parent 41c81854d9
commit 88ac24fa18

View file

@ -69,6 +69,10 @@
local total_score = -1
local side_comparison = ""
for side, team in all_sides() do
repeat -- ugly hack to convert 'break' into 'continue'
if team.__cfg.hidden then
break
end
local income = team.total_income * income_factor
local units = 0
-- Calc the total unit-score here
@ -98,6 +102,7 @@
side_num = side
total_score = total
end
until true -- end ugly hack
end
side_comparison = side_comparison ..
string.format("\n<span foreground=\"%s\">Side %d</span> has the advantage.", colour, side_num)