Ticket #3804: gamesetup.js.2.patch
File gamesetup.js.2.patch, 900 bytes (added by , 8 years ago) |
---|
-
binaries/data/mods/public/gui/gamesetup/gamesetup.js
1590 1590 1591 1591 // Transfer the AI from the target slot to the current slot. 1592 1592 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 } 1593 1603 } 1594 1604 1595 1605 if (g_IsNetworked)