aboutsummaryrefslogtreecommitdiff
path: root/src/script/lua_api
diff options
context:
space:
mode:
authorShadowNinja <shadowninja@minetest.net>2015-07-06 12:53:30 -0400
committerShadowNinja <shadowninja@minetest.net>2017-05-06 16:09:45 -0400
commit77597c4ff3b666cc37dd257952938df48d7e6f09 (patch)
tree00e8ce314ddf1c3eb52bbe6f3521b8a1ea0200ff /src/script/lua_api
parentb6f4a9c7e1a4f0bac66fd6f6ff844425ac775975 (diff)
downloadminetest-77597c4ff3b666cc37dd257952938df48d7e6f09.tar.gz
minetest-77597c4ff3b666cc37dd257952938df48d7e6f09.tar.bz2
minetest-77597c4ff3b666cc37dd257952938df48d7e6f09.zip
Clean up numeric.h and split FacePositionCache from it
I also optiized FacePositionCache a bit: I removed a map lookup and vector copy from both branches of getFacePosition.
Diffstat (limited to 'src/script/lua_api')
-rw-r--r--src/script/lua_api/l_env.cpp1
-rw-r--r--src/script/lua_api/l_server.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/script/lua_api/l_env.cpp b/src/script/lua_api/l_env.cpp
index 0ded12658..b8b6bc5ba 100644
--- a/src/script/lua_api/l_env.cpp
+++ b/src/script/lua_api/l_env.cpp
@@ -35,6 +35,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "treegen.h"
#include "emerge.h"
#include "pathfinder.h"
+#include "face_position_cache.h"
struct EnumString ModApiEnvMod::es_ClearObjectsMode[] =
{
diff --git a/src/script/lua_api/l_server.cpp b/src/script/lua_api/l_server.cpp
index ea993d7b7..a0e475dec 100644
--- a/src/script/lua_api/l_server.cpp
+++ b/src/script/lua_api/l_server.cpp
@@ -26,6 +26,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "environment.h"
#include "player.h"
#include "log.h"
+#include <algorithm>
// request_shutdown()
int ModApiServer::l_request_shutdown(lua_State *L)