Don't show hidden sides in the end-of-turns comparison
This commit is contained in:
parent
41c81854d9
commit
88ac24fa18
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue