summaryrefslogtreecommitdiff
path: root/src/serverobject.cpp
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2012-06-17 02:40:36 +0300
committerPerttu Ahola <celeron55@gmail.com>2012-06-17 02:40:36 +0300
commitd0ea6f9920d30f46d1f5d44e8823a8d932f9f29d (patch)
tree5b75f389b027a058e1f47fa3103a1cfb51f26b9b /src/serverobject.cpp
parent1bc37d576ce790c1169c5f9996be7bbc8026db2c (diff)
downloadminetest-d0ea6f9920d30f46d1f5d44e8823a8d932f9f29d.tar.gz
minetest-d0ea6f9920d30f46d1f5d44e8823a8d932f9f29d.tar.bz2
minetest-d0ea6f9920d30f46d1f5d44e8823a8d932f9f29d.zip
Properly and efficiently use split utility headers
Diffstat (limited to 'src/serverobject.cpp')
-rw-r--r--src/serverobject.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/serverobject.cpp b/src/serverobject.cpp
index a648db7da..deaa94f2c 100644
--- a/src/serverobject.cpp
+++ b/src/serverobject.cpp
@@ -20,6 +20,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "serverobject.h"
#include <fstream>
#include "inventory.h"
+#include "constants.h" // BS
ServerActiveObject::ServerActiveObject(ServerEnvironment *env, v3f pos):
ActiveObject(0),
@@ -66,6 +67,11 @@ void ServerActiveObject::registerType(u16 type, Factory f)
m_types.insert(type, f);
}
+float ServerActiveObject::getMinimumSavedMovement()
+{
+ return 2.0*BS;
+}
+
ItemStack ServerActiveObject::getWieldedItem() const
{
const Inventory *inv = getInventory();