From 88ac24fa18c3b1808f6cb2fadf3fc0f8ec75a1f6 Mon Sep 17 00:00:00 2001 From: Alexander van Gessel Date: Wed, 23 Sep 2009 23:22:36 +0100 Subject: [PATCH] Don't show hidden sides in the end-of-turns comparison --- data/multiplayer/eras.cfg | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/data/multiplayer/eras.cfg b/data/multiplayer/eras.cfg index b839be8e6cb..fa2c28d2a66 100644 --- a/data/multiplayer/eras.cfg +++ b/data/multiplayer/eras.cfg @@ -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("\nSide %d has the advantage.", colour, side_num)