diff options
author | Loic Blot <loic.blot@unix-experience.fr> | 2016-10-30 16:12:09 +0100 |
---|---|---|
committer | Ner'zhul <nerzhul@users.noreply.github.com> | 2016-10-30 16:30:55 +0100 |
commit | 595932a8602292f28333ce14e20cee4b6d8820c1 (patch) | |
tree | 74969852c535f7100a30a7989cd49f1c5693f2ae /src/unittest | |
parent | 9d25242c5c1411d692254cf910345d51c9a24fa3 (diff) | |
download | minetest-595932a8602292f28333ce14e20cee4b6d8820c1.tar.gz minetest-595932a8602292f28333ce14e20cee4b6d8820c1.tar.bz2 minetest-595932a8602292f28333ce14e20cee4b6d8820c1.zip |
Fix overloading problems mentioned by clang
Diffstat (limited to 'src/unittest')
-rw-r--r-- | src/unittest/test_player.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/unittest/test_player.cpp b/src/unittest/test_player.cpp index fba422475..85fbc8b2d 100644 --- a/src/unittest/test_player.cpp +++ b/src/unittest/test_player.cpp @@ -50,9 +50,9 @@ void TestPlayer::testSave(IGameDef *gamedef) sao.initialize(&rplayer, std::set<std::string>()); rplayer.setPlayerSAO(&sao); sao.setBreath(10); - sao.setHP(8, true); - sao.setYaw(0.1f, false); - sao.setPitch(0.6f, false); + sao.setHPRaw(8); + sao.setYaw(0.1f); + sao.setPitch(0.6f); sao.setBasePosition(v3f(450.2f, -15.7f, 68.1f)); rplayer.save(".", gamedef); UASSERT(fs::PathExists("testplayer_save")); @@ -65,9 +65,9 @@ void TestPlayer::testLoad(IGameDef *gamedef) sao.initialize(&rplayer, std::set<std::string>()); rplayer.setPlayerSAO(&sao); sao.setBreath(10); - sao.setHP(8, true); - sao.setYaw(0.1f, false); - sao.setPitch(0.6f, false); + sao.setHPRaw(8); + sao.setYaw(0.1f); + sao.setPitch(0.6f); sao.setBasePosition(v3f(450.2f, -15.7f, 68.1f)); rplayer.save(".", gamedef); UASSERT(fs::PathExists("testplayer_load")); |