mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Merge #1474
1474: Fix automapper not removing the Opaque flag before checking if flags match r=def- a=bojidar-bg Co-authored-by: Bojidar Marinov <bojidar.marinov.bg@gmail.com>
This commit is contained in:
commit
185bfe7a6a
|
@ -469,7 +469,7 @@ void CAutoMapper::Proceed(CLayerTiles *pLayer, int ConfigID, int Seed, int SeedO
|
|||
if(CheckX >= 0 && CheckX < pLayer->m_Width && CheckY >= 0 && CheckY < pLayer->m_Height) {
|
||||
int CheckTile = CheckY * pLayer->m_Width + CheckX;
|
||||
CheckIndex = pReadLayer->m_pTiles[CheckTile].m_Index;
|
||||
CheckFlags = pReadLayer->m_pTiles[CheckTile].m_Flags;
|
||||
CheckFlags = pReadLayer->m_pTiles[CheckTile].m_Flags & (TILEFLAG_ROTATE | TILEFLAG_VFLIP | TILEFLAG_HFLIP);
|
||||
} else {
|
||||
CheckIndex = -1;
|
||||
CheckFlags = 0;
|
||||
|
|
Loading…
Reference in a new issue