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/remoteplayer.cpp | |
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/remoteplayer.cpp')
-rw-r--r-- | src/remoteplayer.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/remoteplayer.cpp b/src/remoteplayer.cpp index 605346928..f4a79dd08 100644 --- a/src/remoteplayer.cpp +++ b/src/remoteplayer.cpp @@ -131,9 +131,9 @@ void RemotePlayer::deSerialize(std::istream &is, const std::string &playername, if (sao) { try { - sao->setHP(args.getS32("hp"), true); + sao->setHPRaw(args.getS32("hp")); } catch(SettingNotFoundException &e) { - sao->setHP(PLAYER_MAX_HP, true); + sao->setHPRaw(PLAYER_MAX_HP); } try { @@ -141,10 +141,10 @@ void RemotePlayer::deSerialize(std::istream &is, const std::string &playername, } catch (SettingNotFoundException &e) {} try { - sao->setPitch(args.getFloat("pitch"), false); + sao->setPitch(args.getFloat("pitch")); } catch (SettingNotFoundException &e) {} try { - sao->setYaw(args.getFloat("yaw"), false); + sao->setYaw(args.getFloat("yaw")); } catch (SettingNotFoundException &e) {} try { |