← Back to team overview

widelands-dev team mailing list archive

[Merge] lp:~widelands-dev/widelands/territorial_game_over into lp:widelands


Toni Förster has proposed merging lp:~widelands-dev/widelands/territorial_game_over into lp:widelands.

Commit message:
In territorial, don't set players into spectator mode when game over condition is met.

Requested reviews:
  Widelands Developers (widelands-dev)

For more details, see:

Currently Territorial Games cannot be continued after the game over condition is met, since all players are set into spectator mode. This is for B20.
Your team Widelands Developers is requested to review the proposed merge of lp:~widelands-dev/widelands/territorial_game_over into lp:widelands.
=== modified file 'data/scripting/win_conditions/territorial_functions.lua'
--- data/scripting/win_conditions/territorial_functions.lua	2019-03-09 08:58:52 +0000
+++ data/scripting/win_conditions/territorial_functions.lua	2019-04-07 15:08:43 +0000
@@ -221,8 +221,6 @@
    calculate_territory_points(fields, players, wc_descname, wc_version)
    for idx, pl in ipairs(players) do
-      pl.see_all = 1
       local wonmsg = won_game_over.body .. game_status.body
       local lostmsg = lost_game_over.body .. game_status.body
       for i=1,#territory_points.points do

Follow ups