summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-07-18 00:30:04 +0300
committerAndrei Karas <akaras@inbox.ru>2011-07-18 00:30:04 +0300
commitf6eb325bae9ae993c59bd0b282aef8707c7409f7 (patch)
tree7ad9a4f22c5c5eeca42a22d8981e32bed583dcf1 /src
parent6fbcdfbbb6a8ad2ba73bde2a5043b523df8ff244 (diff)
downloadplus-f6eb325bae9ae993c59bd0b282aef8707c7409f7.tar.gz
plus-f6eb325bae9ae993c59bd0b282aef8707c7409f7.tar.bz2
plus-f6eb325bae9ae993c59bd0b282aef8707c7409f7.tar.xz
plus-f6eb325bae9ae993c59bd0b282aef8707c7409f7.zip
Fix possible incorrect draw tiles order in opengl mode.
Diffstat (limited to 'src')
-rw-r--r--src/map.cpp3
1 files changed, 3 insertions, 0 deletions
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())
{