Workarround MP work incomplete

This commit is contained in:
Gregory A Lundberg 2016-10-21 19:37:19 -05:00
parent 89aee83bbf
commit 874e568e99

View File

@ -160,7 +160,7 @@ end
-- @a base_gold_amount, gold_increment: used to cauculate the amount of gold available for each timed spawn
-- @a units_amount, gold_per_unit_amount: used to cauculate the number of units spawned in each timed spawn
local function create_timed_spaws(interval, num_spawns, base_gold_amount, gold_increment, units_amount, gold_per_unit_amount)
local configure_gold_factor = (wesnoth.get_variable("enemey_gold_factor") + 100)/100
local configure_gold_factor = ((wesnoth.get_variable("enemey_gold_factor") or 0) + 100)/100
local random_spawn_numbers = {}
for i = 1, #random_spawns do
table.insert(random_spawn_numbers, i)