aboutsummaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorVincent Glize <vincentglize@hotmail.fr>2017-06-03 22:02:07 +0200
committerLoïc Blot <nerzhul@users.noreply.github.com>2017-06-03 22:02:07 +0200
commitdd0a058e1fc74f37605022b52fa1f6b04086bbbf (patch)
treeabd37ed4e5a62776eb2f3ab281991e6ba7e3dad2 /src/game.cpp
parent63ca71e9d2c1131675a7a47a7155458af6a36e3e (diff)
downloadminetest-dd0a058e1fc74f37605022b52fa1f6b04086bbbf.tar.gz
minetest-dd0a058e1fc74f37605022b52fa1f6b04086bbbf.tar.bz2
minetest-dd0a058e1fc74f37605022b52fa1f6b04086bbbf.zip
Snake case for screen options in minetest.conf (#5792)
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/game.cpp b/src/game.cpp
index ff473e022..765744b75 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -1633,8 +1633,8 @@ void Game::run()
&& client->checkPrivilege("fast");
#endif
- irr::core::dimension2d<u32> previous_screen_size(g_settings->getU16("screenW"),
- g_settings->getU16("screenH"));
+ irr::core::dimension2d<u32> previous_screen_size(g_settings->getU16("screen_w"),
+ g_settings->getU16("screen_h"));
while (device->run()
&& !(*kill || g_gamecallback->shutdown_requested
@@ -1648,8 +1648,8 @@ void Game::run()
if (previous_screen_size != current_screen_size &&
current_screen_size != irr::core::dimension2d<u32>(0,0) &&
g_settings->getBool("autosave_screensize")) {
- g_settings->setU16("screenW", current_screen_size.Width);
- g_settings->setU16("screenH", current_screen_size.Height);
+ g_settings->setU16("screen_w", current_screen_size.Width);
+ g_settings->setU16("screen_h", current_screen_size.Height);
previous_screen_size = current_screen_size;
}