1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Use integers instead of float values

This commit is contained in:
BlockMen 2014-04-12 13:50:22 +02:00
parent c0ab09af74
commit 8b02a015eb
9 changed files with 71 additions and 42 deletions

View file

@ -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))