summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-06-06 22:35:47 +0300
committerAndrei Karas <akaras@inbox.ru>2016-06-06 22:35:47 +0300
commitee41cd5a5a37e4d41df49cd92c61868fe2ce1a51 (patch)
tree4a189407ebb6240fd52b1909f38cb539ac1ef029 /src/game.cpp
parent89c3f9e88ab1a11959eacc18c6b4c9fb6e4a3dc9 (diff)
downloadplus-ee41cd5a5a37e4d41df49cd92c61868fe2ce1a51.tar.gz
plus-ee41cd5a5a37e4d41df49cd92c61868fe2ce1a51.tar.bz2
plus-ee41cd5a5a37e4d41df49cd92c61868fe2ce1a51.tar.xz
plus-ee41cd5a5a37e4d41df49cd92c61868fe2ce1a51.zip
Load special tilesets in ignored atlas.
Special tilesets for now is collision and levels. After can be other.
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 9906b8cf1..e6da61255 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -419,6 +419,10 @@ Game::Game() :
if (windowContainer)
windowContainer->add(windowMenu);
+#ifdef USE_OPENGL
+ MapReader::loadEmptyAtlas();
+#endif
+
initEngines();
chatWindow->postConnection();
@@ -450,6 +454,10 @@ Game::Game() :
Game::~Game()
{
+#ifdef USE_OPENGL
+ MapReader::unloadEmptyAtlas();
+#endif
+
settings.disableLoggingInGame = false;
touchManager.setInGame(false);
config.write();