X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Fluaentity_common.cpp;h=63c3f2d6b13c0e0a6b6b21d212ffc7243ae4de82;hb=c0530921ffac89c2249500ba0a1bddd9d288cfbe;hp=26cfce1c2e6735bad6281b88ecd68aa550a12a92;hpb=75a0ca6bd67aa9ca87668bc27d36399b5028c2b1;p=dragonfireclient.git diff --git a/src/luaentity_common.cpp b/src/luaentity_common.cpp index 26cfce1c2..63c3f2d6b 100644 --- a/src/luaentity_common.cpp +++ b/src/luaentity_common.cpp @@ -22,60 +22,77 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "utility.h" #define PP(x) "("<<(x).X<<","<<(x).Y<<","<<(x).Z<<")" +#define PP2(x) "("<<(x).X<<","<<(x).Y<<")" LuaEntityProperties::LuaEntityProperties(): - physical(true), + hp_max(1), + physical(false), weight(5), collisionbox(-0.5,-0.5,-0.5, 0.5,0.5,0.5), - visual("single_sprite") + visual("sprite"), + visual_size(1,1), + spritediv(1,1), + initial_sprite_basepos(0,0) { - textures.push_back("unknown_block.png"); + textures.push_back("unknown_object.png"); } std::string LuaEntityProperties::dump() { std::ostringstream os(std::ios::binary); - os<<"physical="<