protected override void OnMouseDown(MouseEventArgs e)
{
if(map!=null)
{
mDown=true;
clickPointx = convertCoordsDiamond(e.X,e.Y,map.CurrentHeight);
StartDrag=EndDrag=clickPointx;
flipLock2=true;
if(!drawAll && !flipLock)
map[clickPoint.Y,clickPoint.X].DrawAbove = !map[clickPoint.Y,clickPoint.X].DrawAbove;
if(DragChanged!=null)
DragChanged(null,null);
map.SelectedTile = new MapLocation(clickPoint.Y, clickPoint.X, map.CurrentHeight);
//if(ViewClicked!=null)
//{
// Args a = new Args(ArgType.MapClicked);
// a.Location = new MapLocation(clickPoint.Y,clickPoint.X,map.CurrentHeight);
// map.SelectedTile = new MapLocation(clickPoint.Y,clickPoint.X,map.CurrentHeight);
// ViewClicked(this,a);
//}
Focus();
Refresh();
flipLock2=false;
}
}