Skip to content

Commit

Permalink
WC2: make carryover compatible with > 3 sides
Browse files Browse the repository at this point in the history
wml.variables.wc2_player_count is set in a prestart event
this function is used in a recruit event
Thus we can rely on it being set
  • Loading branch information
sevu committed Oct 22, 2021
1 parent 983352d commit dcf9097
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/campaigns/World_Conquest/lua/campaign/scenario.lua
Expand Up @@ -3,7 +3,7 @@ local wc2_scenario = {}
local on_event = wesnoth.require("on_event")

function wc2_scenario.is_human_side(side_num)
return side_num == 1 or side_num == 2 or side_num == 3
return side_num <= wml.variables.wc2_player_count
end

function wc2_scenario.scenario_num()
Expand Down

0 comments on commit dcf9097

Please sign in to comment.