* Checks whether the engine is a valid (non-articulated part of an) engine. * @return true if enabled */
| 144 | * @return true if enabled |
| 145 | */ |
| 146 | bool Engine::IsEnabled() const |
| 147 | { |
| 148 | return this->info.string_id != STR_NEWGRF_INVALID_ENGINE && this->info.climates.Test(_settings_game.game_creation.landscape); |
| 149 | } |
| 150 | |
| 151 | /** |
| 152 | * Retrieve the GRF ID of the NewGRF the engine is tied to. |
no test coverage detected