Loading

Paste #pmwjhmzht

  1. private:
  2.     bool IsEditableItem(const ScriptConfigItem config_item) const
  3.     {
  4.         if (_game_mode == GM_MENU) return true;
  5.  
  6.         if (_game_mode == GM_NORMAL) {
  7.             if (IsConsideredDead(slot)) return true;
  8.             if (config_item.flags & SCRIPTCONFIG_INGAME) return true;
  9.         }
  10.  
  11.         if (IsConsideredDead(slot)) {
  12.             if (slot == OWNER_DEITY) {
  13.                 if (Game::GetInstance() == nullptr) return true;
  14.             }
  15.             if (!Company::IsValidAiID(slot)) return true;
  16.             if (Company::Get(slot)->ai_instance == NULL) return true;
  17.         }
  18.  
  19.         return false;
  20.     }
  21. };

Version history

Revision # Author Created at
p12grch0h Anonymous 28 Jan 2019, 14:52:01 UTC Diff
phnhf0p2b Anonymous 28 Jan 2019, 14:45:16 UTC Diff

Comments