mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 08:35:20 +02:00
Fix overloading problems mentioned by clang
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user