parent
845067d7e8
commit
4fbe2bdec0
2 changed files with 3 additions and 3 deletions
|
@ -61,13 +61,13 @@ function wesnoth.wml_actions.modify_side(cfg)
|
|||
side.shroud = cfg.shroud
|
||||
end
|
||||
if cfg.reset_maps then
|
||||
side:override_shroud(side.side, {})
|
||||
side:override_shroud({})
|
||||
end
|
||||
if cfg.fog ~= nil then
|
||||
side.fog = cfg.fog
|
||||
end
|
||||
if cfg.reset_view then
|
||||
side:place_fog(side.side, {}, true)
|
||||
side:place_fog({}, true)
|
||||
end
|
||||
if cfg.shroud_data then
|
||||
side.shroud_data = cfg.shroud_data
|
||||
|
|
|
@ -772,7 +772,7 @@ int game_lua_kernel::intf_override_shroud(lua_State *L)
|
|||
t.clear_shroud(loc);
|
||||
}
|
||||
} else {
|
||||
return luaL_argerror(L, 2, "expected list of locations");
|
||||
return luaW_type_error(L, 2, "list of locations");
|
||||
}
|
||||
|
||||
game_display_->labels().recalculate_shroud();
|
||||
|
|
Loading…
Add table
Reference in a new issue