@Override
	public void mousePressed(MouseEvent e)
	{
		if ( ! toolBar.isAddingLink() && ! toolBar.isEditingLink()
		&& ! toolBar.isRemovingLink())
		{
			try
			{
				if (tree.getSelectedSquare() != null)
				{
					this.clickX = ((e.getX() - (lblMap.getWidth() - 32 * map
					.getWidth()) / 2) / 32);
					this.clickY = ((e.getY() - (lblMap.getHeight() - 32 * map
					.getWidth()) / 2) / 32);
				}
			}
			catch (SpriteException | CompressionException e1)
			{
				e1.printStackTrace();
			}
		}
		else
		{
			this.clickX = 0xFF;
		}
	}