Loading

Revision differences

Old revision #pudxpqhgrNew revision #pdzyemlyo
  1/* shortened line */  
  2bool editable = _game_mode != GM_NORMAL || (this->slot != OWNER_DEITY && (!Company::IsValidAiID(this->slot) || Company::Get(this->slot)->ai_instance->IsDead())) || (this->slot == OWNER_DEITY && Game::GetInstance()->IsDead()) || (config_item.flags & SCRIPTCONFIG_INGAME) != 0;  
  3  
  4/* full blunt line */  
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);  5bool 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);  
  6  
  7/* dissected line */  
  8bool editable =  
  9_game_mode != GM_NORMAL ||  
  10(_game_mode == GM_NORMAL && this->slot == OWNER_DEITY && Game::GetInstance()->IsDead()) ||  
  11(_game_mode == GM_NORMAL && this->slot == OWNER_DEITY && !Game::GetInstance()->IsDead() && (config_item.flags & SCRIPTCONFIG_INGAME) != 0) ||  
  12(_game_mode == GM_NORMAL && this->slot != OWNER_DEITY && !Company::IsValidID(this->slot)) ||  
  13(_game_mode == GM_NORMAL && this->slot != OWNER_DEITY && Company::IsValidAiID(this->slot) && Company::Get(this->slot)->ai_instance->IsDead()) ||  
  14(_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);  
  15  
2  16  
3/* Find out which parameters are editable */  17/* Find out which parameters are editable */  
4_game_mode != GM_NORMAL // not in a game, and thus, editable  18_game_mode != GM_NORMAL // not in a game, and thus, editable