X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Fobject_properties.cpp;h=ec988a37d2a511422ed67a90c9a89828c6bdbb5e;hb=69bd803a3221bf02672431390e672b0510695254;hp=08e9f63cf71c47c2636b047890681a0e9a5f5878;hpb=b22168d3da597d61c40cc93dd690ba143fd5e4cc;p=oweals%2Fminetest.git diff --git a/src/object_properties.cpp b/src/object_properties.cpp index 08e9f63cf..ec988a37d 100644 --- a/src/object_properties.cpp +++ b/src/object_properties.cpp @@ -3,22 +3,25 @@ Minetest-c55 Copyright (C) 2012 celeron55, Perttu Ahola This program is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2 of the License, or +it under the terms of the GNU Lesser General Public License as published by +the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. +GNU Lesser General Public License for more details. -You should have received a copy of the GNU General Public License along +You should have received a copy of the GNU Lesser General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include "object_properties.h" -#include "utility.h" +#include "irrlichttypes_bloated.h" +#include "util/serialize.h" +#include +#include #define PP(x) "("<<(x).X<<","<<(x).Y<<","<<(x).Z<<")" #define PP2(x) "("<<(x).X<<","<<(x).Y<<")" @@ -29,6 +32,7 @@ ObjectProperties::ObjectProperties(): weight(5), collisionbox(-0.5,-0.5,-0.5, 0.5,0.5,0.5), visual("sprite"), + mesh(""), visual_size(1,1), spritediv(1,1), initial_sprite_basepos(0,0), @@ -37,6 +41,7 @@ ObjectProperties::ObjectProperties(): automatic_rotate(0) { textures.push_back("unknown_object.png"); + colors.push_back(video::SColor(255,255,255,255)); } std::string ObjectProperties::dump() @@ -47,12 +52,18 @@ std::string ObjectProperties::dump() os<<", weight="<