Return-To-The-Roots / s25client

Return To The Roots (Settlers II(R) Clone)
http://www.rttr.info
GNU General Public License v2.0
477 stars 75 forks source link

[LUA] Some settings not correctly working in multiplayer #1660

Closed Spikeone closed 1 month ago

Spikeone commented 5 months ago

Using this setting:

function getAllowedChanges()
    return  {
        ["general"]     = true,
        ["addonsAll"]   = false,
        ["addonsSome"]  = true,
        ["ownNation"]   = true,
        ["ownColor"]    = true,
        ["ownTeam"]     = false,
        ["aiNation"]    = false,
        ["aiColor"]     = true,
        ["aiTeam"]      = false,
        ["swapping"]    = true,
        ["playerState"] = false,
        ["aiNation"]    = false
    }
end

does work fine for the host player in multiplayer - sadly the ownTeam seems to not affect any other player than the host. Same goes for the

function isMapPreviewEnabled()
    return false;
end

which works fine for the host - but no client.

grafik