mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
Don't use fps_max_unfocused for server step time on non-singleplayer main-menu-hosted servers
It's unreasonable to change server step time when the hosting user unfocuses their window. (m_is_paused is already not set if it's not singleplayer.)
This commit is contained in:
parent
191cb117f9
commit
138111a542
1 changed files with 1 additions and 1 deletions
|
@ -2504,7 +2504,7 @@ inline void Game::step(f32 dtime)
|
||||||
ZoneScoped;
|
ZoneScoped;
|
||||||
|
|
||||||
if (server) {
|
if (server) {
|
||||||
float fps_max = !device->isWindowFocused() ?
|
float fps_max = !device->isWindowFocused() && simple_singleplayer_mode ?
|
||||||
g_settings->getFloat("fps_max_unfocused") :
|
g_settings->getFloat("fps_max_unfocused") :
|
||||||
g_settings->getFloat("fps_max");
|
g_settings->getFloat("fps_max");
|
||||||
fps_max = std::max(fps_max, 1.0f);
|
fps_max = std::max(fps_max, 1.0f);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue