Ticket #3804: gamesetup.js.2.patch

File gamesetup.js.2.patch, 900 bytes (added by Vladislav Belov, 8 years ago)
  • binaries/data/mods/public/gui/gamesetup/gamesetup.js

     
    15901590
    15911591        // Transfer the AI from the target slot to the current slot.
    15921592        g_GameAttributes.settings.PlayerData[playerID - 1].AI = g_GameAttributes.settings.PlayerData[newSlot].AI;
     1593
     1594        // Swap civilizations only if they aren't fixed
     1595        if (g_GameAttributes.mapType != "scenario")
     1596        {
     1597            [g_GameAttributes.settings.PlayerData[playerID - 1].Civ, g_GameAttributes.settings.PlayerData[newSlot].Civ] =
     1598                [g_GameAttributes.settings.PlayerData[newSlot].Civ, g_GameAttributes.settings.PlayerData[playerID - 1].Civ];
     1599
     1600            if (!g_IsInGuiUpdate)
     1601                updateGameAttributes();
     1602        }
    15931603    }
    15941604
    15951605    if (g_IsNetworked)