mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Fix hook-through not being fully removed when filling selection
Closes #6782.
This commit is contained in:
parent
e0cc11e617
commit
756740e57e
|
@ -464,10 +464,7 @@ void CLayerTiles::FillSelection(bool Empty, CLayer *pBrush, CUIRect Rect)
|
|||
if(!Destructive && HasTile)
|
||||
continue;
|
||||
|
||||
if(Empty)
|
||||
m_pTiles[fy * m_Width + fx].m_Index = 0;
|
||||
else
|
||||
SetTile(fx, fy, pLt->m_pTiles[(y * pLt->m_Width + x % pLt->m_Width) % (pLt->m_Width * pLt->m_Height)]);
|
||||
SetTile(fx, fy, Empty ? CTile{TILE_AIR} : pLt->m_pTiles[(y * pLt->m_Width + x % pLt->m_Width) % (pLt->m_Width * pLt->m_Height)]);
|
||||
}
|
||||
}
|
||||
FlagModified(sx, sy, w, h);
|
||||
|
|
Loading…
Reference in a new issue