Restore map focus on load map/new map

This commit is contained in:
xalduin 2010-06-10 07:09:51 +08:00 committed by Magnus Auvinen
parent 6e1eaa96ec
commit 22f11d6839

View file

@ -2839,6 +2839,19 @@ void CEditor::Reset(bool CreateDefault)
m_SelectedPoints = 0;
m_SelectedEnvelope = 0;
m_SelectedImage = 0;
m_WorldOffsetX = 0;
m_WorldOffsetY = 0;
m_EditorOffsetX = 0.0f;
m_EditorOffsetY = 0.0f;
m_WorldZoom = 1.0f;
m_ZoomLevel = 200;
m_MouseDeltaX = 0;
m_MouseDeltaY = 0;
m_MouseDeltaWx = 0;
m_MouseDeltaWy = 0;
}
void CEditorMap::MakeGameLayer(CLayer *pLayer)