- Timestamp:
- 05/27/18 15:47:18 (7 years ago)
- Location:
- ps/trunk/binaries/data/mods/public/gui
- Files:
-
- 2 edited
-
common/functions_utility.js (modified) (2 diffs)
-
lobby/lobby.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ps/trunk/binaries/data/mods/public/gui/common/functions_utility.js
r21754 r21827 88 88 function stringifiedTeamListToPlayerData(stringifiedTeamList) 89 89 { 90 let teamList = JSON.parse(unescapeText(stringifiedTeamList)); 90 let teamList = {}; 91 try 92 { 93 teamList = JSON.parse(unescapeText(stringifiedTeamList)); 94 } 95 catch (e) {} 96 91 97 let playerData = []; 92 98 … … 172 178 Engine.GetGUIObjectByName("chatText").caption = ""; 173 179 174 try { 180 try 181 { 175 182 for (let timer of g_ChatTimers) 176 183 clearTimeout(timer); 177 184 g_ChatTimers.length = 0; 178 } catch (e) {179 }185 } 186 catch (e) {} 180 187 } 181 188 -
ps/trunk/binaries/data/mods/public/gui/lobby/lobby.js
r21761 r21827 1018 1018 g_DefaultLobbyRating; 1019 1019 1020 if (!hasSameMods(JSON.parse(game.mods), Engine.GetEngineInfo().mods)) 1020 try 1021 { 1022 game.mods = JSON.parse(game.mods); 1023 } 1024 catch (e) 1025 { 1026 game.mods = []; 1027 } 1028 1029 if (!hasSameMods(game.mods, Engine.GetEngineInfo().mods)) 1021 1030 game.state = "incompatible"; 1022 1031 … … 1179 1188 400, 200, 1180 1189 translate("Your active mods do not match the mods of this game.") + "\n\n" + 1181 comparedModsString( JSON.parse(game.mods), Engine.GetEngineInfo().mods) + "\n\n" +1190 comparedModsString(game.mods, Engine.GetEngineInfo().mods) + "\n\n" + 1182 1191 translate("Do you want to switch to the mod selection page?"), 1183 1192 translate("Incompatible mods"),
Note:
See TracChangeset
for help on using the changeset viewer.
