Loading

Revision differences

Old revision #p7c0lr2u8New revision #pudxpqhgr
  1bool editable = _game_mode != GM_NORMAL || (_game_mode == GM_NORMAL && this->slot == OWNER_DEITY && Game::GetInstance()->IsDead()) || (_game_mode == GM_NORMAL && this->slot == OWNER_DEITY && !Game::GetInstance()->IsDead() && (config_item.flags & SCRIPTCONFIG_INGAME) != 0) || (_game_mode == GM_NORMAL && this->slot != OWNER_DEITY && !Company::IsValidID(this->slot)) || (_game_mode == GM_NORMAL && this->slot != OWNER_DEITY && Company::IsValidAiID(this->slot) && Company::Get(this->slot)->ai_instance->IsDead()) || (_game_mode == GM_NORMAL && this->slot != OWNER_DEITY && Company::IsValidAiID(this->slot) && !Company::Get(this->slot)->ai_instance->IsDead() && (config_item.flags & SCRIPTCONFIG_INGAME) != 0);  
  2  
1/* Find out which parameters are editable */  3/* Find out which parameters are editable */  
2_game_mode != GM_NORMAL // not in a game, and thus, editable  4_game_mode != GM_NORMAL // not in a game, and thus, editable  
3_game_mode == GM_NORMAL // in a game, orange, red and green have parameters, check if they're AI or GS  5_game_mode == GM_NORMAL // in a game, orange, red and green have parameters, check if they're AI or GS