MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / IsDisplayEnabled

Method IsDisplayEnabled

engine/Poseidon/World/WorldImpl.cpp:165–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163const float PreferredGridSizeMP = 25;
164
165bool 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
193bool World::IsSimulationEnabled() const
194{

Callers

nothing calls this directly

Calls 1

ActiveMethod · 0.45

Tested by

no test coverage detected