]> git.lizzy.rs Git - minetest.git/blobdiff - src/staticobject.cpp
Move client-specific files to 'src/client' (#7902)
[minetest.git] / src / staticobject.cpp
index 6ad2e1f940f64bea30c71df828a352049b52db13..b331ac2f2b7557d8c84bd6432509a352ac779db9 100644 (file)
@@ -19,7 +19,14 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 
 #include "staticobject.h"
 #include "util/serialize.h"
-#include "log.h"
+#include "content_sao.h"
+
+StaticObject::StaticObject(const ServerActiveObject *s_obj, const v3f &pos_):
+       type(s_obj->getType()),
+       pos(pos_)
+{
+       s_obj->getStaticData(&data);
+}
 
 void StaticObject::serialize(std::ostream &os)
 {