Ticket #2595: cheats_patch.diff
File cheats_patch.diff, 950 bytes (added by , 10 years ago) |
---|
-
binaries/data/mods/public/gui/gamesetup/gamesetup.js
275 275 { 276 276 // Update attributes so other players can see change 277 277 g_GameAttributes.settings.CheatsEnabled = this.checked; 278 if (this.checked) 279 { 280 g_GameAttributes.settings.RatingEnabled = false; 281 Engine.SetRankedGame(false); 282 } 278 283 if (!g_IsInGuiUpdate) 279 284 updateGameAttributes(); 280 285 }; … … 282 287 Engine.GetGUIObjectByName("enableRating").onPress = function() 283 288 { 284 289 // Update attributes so other players can see change 290 if (this.checked) 291 g_GameAttributes.settings.CheatsEnabled = false; 285 292 g_GameAttributes.settings.RatingEnabled = this.checked; 286 293 Engine.SetRankedGame(this.checked); 287 294 if (!g_IsInGuiUpdate)