diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-08-14 22:11:56 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-08-14 22:11:56 +0300 |
commit | d0b0c1c8bbb8ce9fbf93887ed7dae5f779d17a21 (patch) | |
tree | 169feb38c052933325683490b9174aff48a2a438 /src/resources/imageset.cpp | |
parent | a2c06346e1830d888a72ccdb2e224686319af014 (diff) | |
download | ManaVerse-d0b0c1c8bbb8ce9fbf93887ed7dae5f779d17a21.tar.gz ManaVerse-d0b0c1c8bbb8ce9fbf93887ed7dae5f779d17a21.tar.bz2 ManaVerse-d0b0c1c8bbb8ce9fbf93887ed7dae5f779d17a21.tar.xz ManaVerse-d0b0c1c8bbb8ce9fbf93887ed7dae5f779d17a21.zip |
add flag into resource and imageset what prevent subimage or other resource from auto removing.
Diffstat (limited to 'src/resources/imageset.cpp')
-rw-r--r-- | src/resources/imageset.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/resources/imageset.cpp b/src/resources/imageset.cpp index 164e682a4..5f62af574 100644 --- a/src/resources/imageset.cpp +++ b/src/resources/imageset.cpp @@ -49,7 +49,9 @@ ImageSet::ImageSet(Image *const img, const int width, const int height, for (int x = margin; x + width <= img->getWidth() - margin; x += wAdd) { - mImages.push_back(img->getSubImage(x, y, width, height)); + Image *const image = img->getSubImage(x, y, width, height); + image->setNotCount(true); + mImages.push_back(image); } } } |