mirror of
https://github.com/ddnet/ddnet.git
synced 2024-09-20 09:34:19 +00:00
naming & eol
This commit is contained in:
parent
f79bf5d03b
commit
520aa7dd0d
|
@ -881,13 +881,13 @@ CLayer *CEditor::GetSelectedLayerType(int Index, int Type)
|
|||
array<CQuad *> CEditor::GetSelectedQuads()
|
||||
{
|
||||
CLayerQuads *ql = (CLayerQuads *)GetSelectedLayerType(0, LAYERTYPE_QUADS);
|
||||
array<CQuad *> aQuads;
|
||||
array<CQuad *> lQuads;
|
||||
if(!ql)
|
||||
return aQuads;
|
||||
aQuads.set_size(m_lSelectedQuads.size());
|
||||
return lQuads;
|
||||
lQuads.set_size(m_lSelectedQuads.size());
|
||||
for(int i = 0; i < m_lSelectedQuads.size(); ++i)
|
||||
aQuads[i] = &ql->m_lQuads[m_lSelectedQuads[i]];
|
||||
return aQuads;
|
||||
lQuads[i] = &ql->m_lQuads[m_lSelectedQuads[i]];
|
||||
return lQuads;
|
||||
}
|
||||
|
||||
CSoundSource *CEditor::GetSelectedSource()
|
||||
|
@ -927,22 +927,22 @@ void CEditor::DeleteSelectedQuads()
|
|||
|
||||
m_lSelectedQuads.remove_index(i--);
|
||||
}
|
||||
}
|
||||
|
||||
bool CEditor::IsQuadSelected(int Index)
|
||||
{
|
||||
for(int i = 0; i < m_lSelectedQuads.size(); ++i)
|
||||
if(m_lSelectedQuads[i] == Index)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
int CEditor::FindSelectedQuadIndex(int Index)
|
||||
{
|
||||
for(int i = 0; i < m_lSelectedQuads.size(); ++i)
|
||||
if(m_lSelectedQuads[i] == Index)
|
||||
return i;
|
||||
return -1;
|
||||
}
|
||||
|
||||
bool CEditor::IsQuadSelected(int Index)
|
||||
{
|
||||
for(int i = 0; i < m_lSelectedQuads.size(); ++i)
|
||||
if(m_lSelectedQuads[i] == Index)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
int CEditor::FindSelectedQuadIndex(int Index)
|
||||
{
|
||||
for(int i = 0; i < m_lSelectedQuads.size(); ++i)
|
||||
if(m_lSelectedQuads[i] == Index)
|
||||
return i;
|
||||
return -1;
|
||||
}
|
||||
|
||||
void CEditor::CallbackOpenMap(const char *pFileName, int StorageType, void *pUser)
|
||||
|
|
Loading…
Reference in a new issue