Commit d924a2cc authored by Gerhard Stein's avatar Gerhard Stein

Mask are now working. Still checking it a bit more

parent 59dd96e3
......@@ -582,10 +582,14 @@ void CMap::registerAnimation(Uint32 x, Uint32 y, size_t plane, int c)
}
}
CMap::~CMap() {
void CMap::cleanupAll()
{
memset( m_AnimTileInUse, 0, sizeof(m_AnimTileInUse));
memset( m_animtiles, 0, sizeof(m_animtiles));
}
CMap::~CMap() {
}
......@@ -74,6 +74,7 @@ public:
word *getForegroundData();
word *getBackgroundData();
void cleanupAll();
virtual ~CMap();
......
......@@ -81,6 +81,7 @@ void CPlayGameGalaxy::processInput()
m_Level++;
else
m_Level = 0;
m_Map.cleanupAll();
loadLevel();
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment