Fix Stuffs & clean comments

This commit is contained in:
Alexandre 2011-08-14 21:16:19 +02:00 committed by oy
parent 367bb4b837
commit de5eccef3f

View file

@ -820,6 +820,7 @@ void CEditor::DoToolbar(CUIRect ToolBar)
(Input()->KeyDown('i') && (Input()->KeyPressed(KEY_LCTRL) || Input()->KeyPressed(KEY_RCTRL))))
{
m_ShowTileInfo = !m_ShowTileInfo;
m_ShowEnvelopePreview = 0;
}
TB_Top.VSplitLeft(15.0f, 0, &TB_Top);
@ -1391,7 +1392,6 @@ void CEditor::DoQuadPoint(CQuad *pQuad, int QuadIndex, int V)
Graphics()->QuadsDraw(&QuadItem, 1);
}
//H-Client
void CEditor::DoQuadEnvelopes(CQuad *q, int Index, int texID)
{
CEnvelope *pEnvelope = 0x0;
@ -1863,6 +1863,7 @@ void CEditor::DoMapEditor(CUIRect View, CUIRect ToolBar)
{
CLayerQuads *pLayer = (CLayerQuads *)pEditLayers[k];
if (!m_ShowEnvelopePreview)
m_ShowEnvelopePreview = 2;
Graphics()->TextureSet(-1);
@ -3354,6 +3355,7 @@ void CEditor::RenderEnvelopeEditor(CUIRect View)
}
m_SelectedQuadEnvelope = m_SelectedEnvelope;
m_ShowEnvelopePreview = 1;
m_SelectedEnvelopeChannel = i;
m_Map.m_Modified = true;
}