From 82a460ec90b4537926f31603219504bce8817ac2 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sun, 27 Nov 2011 04:31:05 +0200 Subject: Improve luaentity sprite functionality (and add some random stuff) --- src/luaentity_common.cpp | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'src/luaentity_common.cpp') diff --git a/src/luaentity_common.cpp b/src/luaentity_common.cpp index 503083d0b..cf1ac7bed 100644 --- a/src/luaentity_common.cpp +++ b/src/luaentity_common.cpp @@ -22,12 +22,16 @@ 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(false), weight(5), collisionbox(-0.5,-0.5,-0.5, 0.5,0.5,0.5), - visual("single_sprite") + visual("single_sprite"), + visual_size(1,1), + spritediv(1,1), + initial_sprite_basepos(0,0) { textures.push_back("unknown_object.png"); } @@ -39,11 +43,14 @@ std::string LuaEntityProperties::dump() os<<", weight="<