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);
@ -1390,8 +1391,7 @@ void CEditor::DoQuadPoint(CQuad *pQuad, int QuadIndex, int V)
IGraphics::CQuadItem QuadItem(px, py, 5.0f*m_WorldZoom, 5.0f*m_WorldZoom);
Graphics()->QuadsDraw(&QuadItem, 1);
}
//H-Client
void CEditor::DoQuadEnvelopes(CQuad *q, int Index, int texID)
{
CEnvelope *pEnvelope = 0x0;
@ -1862,8 +1862,9 @@ void CEditor::DoMapEditor(CUIRect View, CUIRect ToolBar)
if(pEditLayers[k]->m_Type == LAYERTYPE_QUADS)
{
CLayerQuads *pLayer = (CLayerQuads *)pEditLayers[k];
m_ShowEnvelopePreview = 2;
if (!m_ShowEnvelopePreview)
m_ShowEnvelopePreview = 2;
Graphics()->TextureSet(-1);
Graphics()->QuadsBegin();
@ -3353,7 +3354,8 @@ void CEditor::RenderEnvelopeEditor(CUIRect View)
pEnvelope->m_lPoints[i].m_aValues[c] -= f2fx(m_MouseDeltaY*ValueScale);
}
m_SelectedQuadEnvelope = m_SelectedEnvelope;
m_SelectedQuadEnvelope = m_SelectedEnvelope;
m_ShowEnvelopePreview = 1;
m_SelectedEnvelopeChannel = i;
m_Map.m_Modified = true;
}