naming & eol

This commit is contained in:
Aerll 2018-08-13 16:46:53 +02:00
parent f79bf5d03b
commit 520aa7dd0d

View file

@ -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)