mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 22:48:18 +00:00
Don't copy alpha when coloring the brush
This commit is contained in:
parent
461a83871b
commit
80c829681e
|
@ -2255,6 +2255,7 @@ void CEditor::DoMapEditor(CUIRect View)
|
|||
m_TilesetPicker.m_Image = t->m_Image;
|
||||
m_TilesetPicker.m_TexID = t->m_TexID;
|
||||
m_TilesetPicker.m_Color = t->m_Color;
|
||||
m_TilesetPicker.m_Color.a = 255;
|
||||
m_TilesetPicker.Render();
|
||||
if(m_ShowTileInfo)
|
||||
m_TilesetPicker.ShowInfo();
|
||||
|
|
|
@ -180,6 +180,7 @@ int CLayerTiles::BrushGrab(CLayerGroup *pBrush, CUIRect Rect)
|
|||
pGrabbed->m_Image = m_Image;
|
||||
pGrabbed->m_Game = m_Game;
|
||||
pGrabbed->m_Color = m_Color;
|
||||
pGrabbed->m_Color.a = 255;
|
||||
|
||||
pBrush->AddLayer(pGrabbed);
|
||||
|
||||
|
@ -208,6 +209,7 @@ int CLayerTiles::BrushGrab(CLayerGroup *pBrush, CUIRect Rect)
|
|||
pGrabbed->m_Image = m_Image;
|
||||
pGrabbed->m_Game = m_Game;
|
||||
pGrabbed->m_Color = m_Color;
|
||||
pGrabbed->m_Color.a = 255;
|
||||
|
||||
pBrush->AddLayer(pGrabbed);
|
||||
|
||||
|
@ -242,6 +244,7 @@ int CLayerTiles::BrushGrab(CLayerGroup *pBrush, CUIRect Rect)
|
|||
pGrabbed->m_Image = m_Image;
|
||||
pGrabbed->m_Game = m_Game;
|
||||
pGrabbed->m_Color = m_Color;
|
||||
pGrabbed->m_Color.a = 255;
|
||||
|
||||
pBrush->AddLayer(pGrabbed);
|
||||
|
||||
|
@ -275,6 +278,8 @@ int CLayerTiles::BrushGrab(CLayerGroup *pBrush, CUIRect Rect)
|
|||
pGrabbed->m_Image = m_Image;
|
||||
pGrabbed->m_Game = m_Game;
|
||||
pGrabbed->m_Color = m_Color;
|
||||
pGrabbed->m_Color.a = 255;
|
||||
|
||||
pBrush->AddLayer(pGrabbed);
|
||||
|
||||
// copy the tiles
|
||||
|
@ -304,6 +309,8 @@ int CLayerTiles::BrushGrab(CLayerGroup *pBrush, CUIRect Rect)
|
|||
pGrabbed->m_Image = m_Image;
|
||||
pGrabbed->m_Game = m_Game;
|
||||
pGrabbed->m_Color = m_Color;
|
||||
pGrabbed->m_Color.a = 255;
|
||||
|
||||
pBrush->AddLayer(pGrabbed);
|
||||
|
||||
// copy the tiles
|
||||
|
@ -320,6 +327,8 @@ int CLayerTiles::BrushGrab(CLayerGroup *pBrush, CUIRect Rect)
|
|||
pGrabbed->m_Image = m_Image;
|
||||
pGrabbed->m_Game = m_Game;
|
||||
pGrabbed->m_Color = m_Color;
|
||||
pGrabbed->m_Color.a = 255;
|
||||
|
||||
pBrush->AddLayer(pGrabbed);
|
||||
|
||||
// copy the tiles
|
||||
|
|
Loading…
Reference in a new issue