From 1e8e700ee645fa642e868c79c2717c82d3509f55 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 18 Dec 2014 23:25:36 +1100 Subject: Change TileSpec::frames to be std::vector not std::map Signed-off-by: Craig Robbins --- src/mapblock_mesh.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mapblock_mesh.cpp') 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) { -- cgit v1.2.3