protected override void OnBeginPaint() { base.OnBeginPaint(); this.m_height = TerrainManipulator.GetAverageHeight(this.m_cursorPos.XY, this.m_brush); }