diff options
author | BlockMen <nmuelll@web.de> | 2014-04-12 13:50:22 +0200 |
---|---|---|
committer | BlockMen <nmuelll@web.de> | 2014-04-12 20:04:12 +0200 |
commit | 8b02a015eb7630c25e255ffe400bb714d023609b (patch) | |
tree | 42a7d9bd217a04574767f9c202536bdebafa53c3 /src/script/lua_api | |
parent | c0ab09af747fc431dfb459ede30788cb9cd1c56b (diff) | |
download | minetest-8b02a015eb7630c25e255ffe400bb714d023609b.tar.gz minetest-8b02a015eb7630c25e255ffe400bb714d023609b.tar.bz2 minetest-8b02a015eb7630c25e255ffe400bb714d023609b.zip |
Use integers instead of float values
Diffstat (limited to 'src/script/lua_api')
-rw-r--r-- | src/script/lua_api/l_object.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/script/lua_api/l_object.cpp b/src/script/lua_api/l_object.cpp index 8f2bde036..5e3ddd235 100644 --- a/src/script/lua_api/l_object.cpp +++ b/src/script/lua_api/l_object.cpp @@ -415,10 +415,10 @@ int ObjectRef::l_set_local_animation(lua_State *L) if (player == NULL) return 0; // Do it - v2f frames[4]; + v2s32 frames[4]; for (int i=0;i<4;i++) { if(!lua_isnil(L, 2+1)) - frames[i] = read_v2f(L, 2+i); + frames[i] = read_v2s32(L, 2+i); } float frame_speed = 30; if(!lua_isnil(L, 6)) |