Ticket #3033: keepcheatsenabled.patch

File keepcheatsenabled.patch, 643 bytes (added by Alex, 9 years ago)

Although I couldn't imagine a case where cheats become disabled in singleplayer, have a patch.

  • binaries/data/mods/public/gui/gamesetup/gamesetup.js

    diff --git a/binaries/data/mods/public/gui/gamesetup/gamesetup.js b/binaries/data/mods/public/gui/gamesetup/gamesetup.js
    index fd9d9be..1349e58 100644
    a b function loadGameAttributes()  
    720720    mapSettings.Seed = Math.floor(Math.random() * 65536);
    721721    mapSettings.AISeed = Math.floor(Math.random() * 65536);
    722722
     723    // Ensure that cheats are enabled in singleplayer
     724    if (!g_IsNetworked)
     725        mapSettings.CheatsEnabled = true;
     726
    723727    // TODO: Check new attributes for being semantically correct.
    724728    g_GameAttributes = attrs;
    725729