summaryrefslogtreecommitdiff
path: root/src/mapblock_mesh.cpp
diff options
context:
space:
mode:
authorunknown <gregory.currie@gmail.com>2014-12-18 23:25:36 +1100
committerCraig Robbins <kde.psych@gmail.com>2014-12-21 02:41:17 +1000
commit1e8e700ee645fa642e868c79c2717c82d3509f55 (patch)
treecce5e4aa931cf593d6252e88d786a0a9ef304559 /src/mapblock_mesh.cpp
parent0d55f43977080435c6e67a2851fb343dc65e153c (diff)
downloadminetest-1e8e700ee645fa642e868c79c2717c82d3509f55.tar.gz
minetest-1e8e700ee645fa642e868c79c2717c82d3509f55.tar.bz2
minetest-1e8e700ee645fa642e868c79c2717c82d3509f55.zip
Change TileSpec::frames to be std::vector not std::map
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
Diffstat (limited to 'src/mapblock_mesh.cpp')
-rw-r--r--src/mapblock_mesh.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mapblock_mesh.cpp b/src/mapblock_mesh.cpp
index 29b0e92f5..f4a44a256 100644
--- a/src/mapblock_mesh.cpp
+++ b/src/mapblock_mesh.cpp
@@ -1136,7 +1136,7 @@ MapBlockMesh::MapBlockMesh(MeshMakeData *data, v3s16 camera_offset):
m_animation_frame_offsets[i] = 0;
}
// Replace tile texture with the first animation frame
- FrameSpec animation_frame = p.tile.frames.find(0)->second;
+ FrameSpec animation_frame = p.tile.frames[0];
p.tile.texture = animation_frame.texture;
}
@@ -1322,7 +1322,7 @@ bool MapBlockMesh::animate(bool faraway, float time, int crack, u32 daynight_rat
scene::IMeshBuffer *buf = m_mesh->getMeshBuffer(i->first);
ITextureSource *tsrc = m_gamedef->getTextureSource();
- FrameSpec animation_frame = tile.frames.find(frame)->second;
+ FrameSpec animation_frame = tile.frames[frame];
buf->getMaterial().setTexture(0, animation_frame.texture);
if (m_enable_shaders) {
if (animation_frame.normal_texture) {