aboutsummaryrefslogtreecommitdiff
path: root/src/script
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2016-12-23 13:48:32 +0100
committersfan5 <sfan5@live.de>2017-01-02 15:28:06 +0100
commit523f0e8c5bce0cb58215dc1f9d027cf32394e3c3 (patch)
treeba8cbd3e60947573fcb6065f4caf5b3152cccb93 /src/script
parente2e8da5ee44f71c22996a780caff67e48e79fae4 (diff)
downloadminetest-523f0e8c5bce0cb58215dc1f9d027cf32394e3c3.tar.gz
minetest-523f0e8c5bce0cb58215dc1f9d027cf32394e3c3.tar.bz2
minetest-523f0e8c5bce0cb58215dc1f9d027cf32394e3c3.zip
Move TileAnimation code to seperate file
Diffstat (limited to 'src/script')
-rw-r--r--src/script/common/c_content.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/script/common/c_content.cpp b/src/script/common/c_content.cpp
index 541744895..6cd1d040b 100644
--- a/src/script/common/c_content.cpp
+++ b/src/script/common/c_content.cpp
@@ -338,11 +338,11 @@ TileDef read_tiledef(lua_State *L, int index, u8 drawtype)
tiledef.animation.type = (TileAnimationType)
getenumfield(L, -1, "type", es_TileAnimationType,
TAT_NONE);
- tiledef.animation.aspect_w =
+ tiledef.animation.vertical_frames.aspect_w =
getintfield_default(L, -1, "aspect_w", 16);
- tiledef.animation.aspect_h =
+ tiledef.animation.vertical_frames.aspect_h =
getintfield_default(L, -1, "aspect_h", 16);
- tiledef.animation.length =
+ tiledef.animation.vertical_frames.length =
getfloatfield_default(L, -1, "length", 1.0);
}
lua_pop(L, 1);