← Back to team overview

widelands-dev team mailing list archive

[Merge] lp:~widelands-dev/widelands/bug-1451069 into lp:widelands

 

GunChleoc has proposed merging lp:~widelands-dev/widelands/bug-1451069 into lp:widelands.

Commit message:
Collectors win condition now counts wares in ports as well.

Requested reviews:
  Widelands Developers (widelands-dev)
Related bugs:
  Bug #1451069 in widelands: "Collectors win condition doesn't count wares in ports"
  https://bugs.launchpad.net/widelands/+bug/1451069

For more details, see:
https://code.launchpad.net/~widelands-dev/widelands/bug-1451069/+merge/258119

Collectors win condition now counts wares in ports as well.
-- 
Your team Widelands Developers is requested to review the proposed merge of lp:~widelands-dev/widelands/bug-1451069 into lp:widelands.
=== modified file 'scripting/win_conditions/collectors.lua'
--- scripting/win_conditions/collectors.lua	2015-03-21 13:26:28 +0000
+++ scripting/win_conditions/collectors.lua	2015-05-03 09:40:18 +0000
@@ -93,7 +93,7 @@
    local function _calc_points(plr)
       set_textdomain("win_conditions")
       local bs = array_combine(
-         plr:get_buildings("headquarters"), plr:get_buildings("warehouse")
+         plr:get_buildings("headquarters"), plr:get_buildings("warehouse"), plr:get_buildings("port")
       )
 
       local points = 0


Follow ups