aboutsummaryrefslogtreecommitdiff
path: root/src/script
diff options
context:
space:
mode:
authorLoic Blot <loic.blot@unix-experience.fr>2016-10-30 16:12:09 +0100
committerNer'zhul <nerzhul@users.noreply.github.com>2016-10-30 16:30:55 +0100
commit595932a8602292f28333ce14e20cee4b6d8820c1 (patch)
tree74969852c535f7100a30a7989cd49f1c5693f2ae /src/script
parent9d25242c5c1411d692254cf910345d51c9a24fa3 (diff)
downloadminetest-595932a8602292f28333ce14e20cee4b6d8820c1.tar.gz
minetest-595932a8602292f28333ce14e20cee4b6d8820c1.tar.bz2
minetest-595932a8602292f28333ce14e20cee4b6d8820c1.zip
Fix overloading problems mentioned by clang
Diffstat (limited to 'src/script')
-rw-r--r--src/script/lua_api/l_object.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/script/lua_api/l_object.cpp b/src/script/lua_api/l_object.cpp
index cf124f17c..42395717f 100644
--- a/src/script/lua_api/l_object.cpp
+++ b/src/script/lua_api/l_object.cpp
@@ -1090,7 +1090,7 @@ int ObjectRef::l_set_look_vertical(lua_State *L)
if (co == NULL) return 0;
float pitch = luaL_checknumber(L, 2) * core::RADTODEG;
// Do it
- co->setPitch(pitch);
+ co->setPitchAndSend(pitch);
return 1;
}
@@ -1103,7 +1103,7 @@ int ObjectRef::l_set_look_horizontal(lua_State *L)
if (co == NULL) return 0;
float yaw = luaL_checknumber(L, 2) * core::RADTODEG;
// Do it
- co->setYaw(yaw);
+ co->setYawAndSend(yaw);
return 1;
}
@@ -1121,7 +1121,7 @@ int ObjectRef::l_set_look_pitch(lua_State *L)
if (co == NULL) return 0;
float pitch = luaL_checknumber(L, 2) * core::RADTODEG;
// Do it
- co->setPitch(pitch);
+ co->setPitchAndSend(pitch);
return 1;
}
@@ -1139,7 +1139,7 @@ int ObjectRef::l_set_look_yaw(lua_State *L)
if (co == NULL) return 0;
float yaw = luaL_checknumber(L, 2) * core::RADTODEG;
// Do it
- co->setYaw(yaw);
+ co->setYawAndSend(yaw);
return 1;
}