Used the enum const TILESLAYERFLAG_GAME instead of 1

This commit is contained in:
Shereef Marzouk 2011-08-02 12:14:00 +02:00
parent 50edfd37c0
commit 29de27f9dd

View file

@ -29,7 +29,7 @@ void CLayers::Init(class IKernel *pKernel)
if(pLayer->m_Type == LAYERTYPE_TILES)
{
CMapItemLayerTilemap *pTilemap = reinterpret_cast<CMapItemLayerTilemap *>(pLayer);
if(pTilemap->m_Flags&1)
if(pTilemap->m_Flags&TILESLAYERFLAG_GAME)
{
m_pGameLayer = pTilemap;
m_pGameGroup = pGroup;