void playSound(int intSFX,int intLocX, int intLocY)
	{
		int i,
			i2,
			i3;
		DuskObject objStore;
		LivingThing thnStore;
	   	i=0;
	   	intLocX = intLocX-viewrange;
	   	intLocY = intLocY-viewrange;
	    if (intLocX<0)
		{
	    	i = -1*(intLocX);
	    }
	   	i2=0;
	    if (intLocY<0)
	    {
	    	i2 = -1*(intLocY);
	    }
		for (;i<mapsize;i++)
		{
			if (intLocX+i<MapColumns)
			{
				for (i3=i2;i3<mapsize;i3++)
				{
					if (intLocY+i3<MapRows)
					{
						objStore = objEntities[intLocX+i][intLocY+i3];
						while (objStore != null)
						{
							if (objStore.isLivingThing())
							{
								thnStore = (LivingThing)objStore;
								if (thnStore.isPlayer())
								{
									thnStore.playSFX(intSFX);
								}
							}
							objStore = objStore.objNext;
						}
					}
				}
			}
		}
	}