* Check whether the object might be available at some point in this game with the current game mode. * @return true if it might be available. */
| 76 | * @return true if it might be available. |
| 77 | */ |
| 78 | bool ObjectSpec::IsEverAvailable() const |
| 79 | { |
| 80 | return this->IsEnabled() && this->climate.Test(_settings_game.game_creation.landscape) && |
| 81 | !this->flags.Test((_game_mode != GM_EDITOR && !_generating_world) ? ObjectFlag::OnlyInScenedit : ObjectFlag::OnlyInGame); |
| 82 | } |
| 83 | |
| 84 | /** |
| 85 | * Check whether the object was available at some point in the past or present in this game with the current game mode. |
no test coverage detected