diff options
author | Craig Robbins <kde.psych@gmail.com> | 2015-03-29 22:21:32 +1000 |
---|---|---|
committer | Craig Robbins <kde.psych@gmail.com> | 2015-03-29 22:21:32 +1000 |
commit | e1475bdc89be77ba4bf73ecf25ec1be5e0578f09 (patch) | |
tree | ad9d6e323639d4c08aa392f6aabd9981ace14fb1 /src/client | |
parent | 34101015b20105040f22b204f2aba2070fca5dae (diff) | |
download | minetest-e1475bdc89be77ba4bf73ecf25ec1be5e0578f09.tar.gz minetest-e1475bdc89be77ba4bf73ecf25ec1be5e0578f09.tar.bz2 minetest-e1475bdc89be77ba4bf73ecf25ec1be5e0578f09.zip |
Make sure g_timegetter is initalised before running speedtests
Thanks @SmallJoker for noticing the issue
Diffstat (limited to 'src/client')
-rw-r--r-- | src/client/clientlauncher.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/clientlauncher.cpp b/src/client/clientlauncher.cpp index 7b2aaa74f..6815082a6 100644 --- a/src/client/clientlauncher.cpp +++ b/src/client/clientlauncher.cpp @@ -81,6 +81,9 @@ bool ClientLauncher::run(GameParams &game_params, const Settings &cmd_args) return false; } + // Create time getter + g_timegetter = new IrrlichtTimeGetter(device); + // Speed tests (done after irrlicht is loaded to get timer) if (cmd_args.getFlag("speedtests")) { dstream << "Running speed tests" << std::endl; @@ -102,9 +105,6 @@ bool ClientLauncher::run(GameParams &game_params, const Settings &cmd_args) */ //driver->setMinHardwareBufferVertexCount(50); - // Create time getter - g_timegetter = new IrrlichtTimeGetter(device); - // Create game callback for menus g_gamecallback = new MainGameCallback(device); |