mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Used the enum const TILESLAYERFLAG_GAME instead of 1
This commit is contained in:
parent
50edfd37c0
commit
29de27f9dd
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue