| 163 | const float PreferredGridSizeMP = 25; |
| 164 | |
| 165 | bool World::IsDisplayEnabled() const |
| 166 | { |
| 167 | if (ENGINE_CONFIG.landEditor) |
| 168 | { |
| 169 | return true; |
| 170 | } |
| 171 | if (_noDisplay) |
| 172 | { |
| 173 | return false; |
| 174 | } |
| 175 | if (_showMap && _map && !_map->IsDisplayEnabled()) |
| 176 | { |
| 177 | return false; |
| 178 | } |
| 179 | if (GetGProgress().Active()) |
| 180 | { |
| 181 | return false; |
| 182 | } |
| 183 | // No menu attached → display is always on (viewer / dedicated / |
| 184 | // editor paths skip CreateMainOptions, so `_options == nullptr` |
| 185 | // is the natural signal for "no menu in this mode"). |
| 186 | if (!_options) |
| 187 | { |
| 188 | return true; |
| 189 | } |
| 190 | return _options->IsDisplayEnabled(); |
| 191 | } |
| 192 | |
| 193 | bool World::IsSimulationEnabled() const |
| 194 | { |