mirror of
https://github.com/minetest/minetest.git
synced 2025-03-06 20:48:40 +01: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;
|
||||
|
||||
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");
|
||||
fps_max = std::max(fps_max, 1.0f);
|
||||
|
|
Loading…
Add table
Reference in a new issue