&& (gfxcontrol.getModeProps()[3] == 1) && movingSprite)
&& (((gfxcontrol.getModeProps()[3] == 1) && movingSprite) || ((gfxcontrol.getModeProps()[4] >= 2) && movingDoor)))
        public void mouseReleased(MouseEvent e)        {        	if ((e.getButton() == 1)        			&& (gfxcontrol.getModeProps()[3] == 1)					&& movingSprite)        	{        		int mousex = e.getX();        		int mousey = e.getY();        		if (mousex < 0)        		{        			mousex = 0;        		}        		if (mousey < 0)        		{        			mousey = 0;        		}        		if (mousex > MapEditor.tileWidth * screenWidth)        		{        			mousex = MapEditor.tileWidth * screenWidth;        		}        		if (mousey > MapEditor.tileHeight * screenHeight)        		{        			mousey = MapEditor.tileHeight * screenHeight;        		}        		        		short tpt =        			EbMap.getSpriteTpt(movingSpriteInfo[0],        					movingSpriteInfo[1],							movingSpriteInfo[2]);        		int[] spLocXY =        			gfxcontrol.getCoords(mousex, mousey);        		if (spLocXY[0] >= MapEditor.widthInSectors)        			spLocXY[0] = MapEditor.widthInSectors - 1;        		else if (spLocXY[0] < 0)        			spLocXY[0] = 0;        		if (spLocXY[1] >= MapEditor.heightInSectors)        			spLocXY[1] = MapEditor.heightInSectors - 1;        		else if (spLocXY[1] < 0)        			spLocXY[1] = 0;        		EbMap.removeSprite(        				movingSpriteInfo[0],						movingSpriteInfo[1],        				movingSpriteInfo[2]);        		EbMap.addSprite(spLocXY[0], spLocXY[1],        				(short) spLocXY[2], (short) spLocXY[3],						tpt);        		movingSprite = false;        		gfxcontrol.remoteRepaint();        	}        }