From f6eb325bae9ae993c59bd0b282aef8707c7409f7 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 18 Jul 2011 00:30:04 +0300 Subject: Fix possible incorrect draw tiles order in opengl mode. --- src/map.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/map.cpp') diff --git a/src/map.cpp b/src/map.cpp index 3c800018a..f9750f217 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -350,6 +350,9 @@ void MapLayer::updateOGL(Graphics *graphics, int startX, int startY, { if (lastImage != img) { + if (img->mBounds.w > 32) + imgSet.clear(); + imgSet[lastImage] = imgVert; if (imgSet.find(img) != imgSet.end()) { -- cgit v1.2.3-70-g09d2