Minor no-op changes for the compiler and/or XNA
This commit is contained in:
parent
430335c47a
commit
3cf99bb34f
@ -117,9 +117,7 @@ namespace TrueCraft.Client
|
|||||||
public void PlayPack(string pack, float volume = 1.0f)
|
public void PlayPack(string pack, float volume = 1.0f)
|
||||||
{
|
{
|
||||||
var i = MathHelper.Random.Next(0, AudioPacks[pack].Length);
|
var i = MathHelper.Random.Next(0, AudioPacks[pack].Length);
|
||||||
var instance = AudioPacks[pack][i].CreateInstance();
|
AudioPacks[pack][i].Play(volume * EffectVolume, 1.0f, 0.0f);
|
||||||
instance.Volume = volume * EffectVolume;
|
|
||||||
instance.Play();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
namespace TrueCraft.Client.Events
|
namespace TrueCraft.Client.Events
|
||||||
{
|
{
|
||||||
public class ChunkEventArgs
|
public class ChunkEventArgs : EventArgs
|
||||||
{
|
{
|
||||||
public ReadOnlyChunk Chunk { get; set; }
|
public ReadOnlyChunk Chunk { get; set; }
|
||||||
|
|
||||||
|
@ -411,7 +411,7 @@ namespace TrueCraft.Client
|
|||||||
GraphicsDevice.SetRenderTarget(null);
|
GraphicsDevice.SetRenderTarget(null);
|
||||||
|
|
||||||
SpriteBatch.Begin();
|
SpriteBatch.Begin();
|
||||||
SpriteBatch.Draw(RenderTarget, new Vector2(0));
|
SpriteBatch.Draw(RenderTarget, Vector2.Zero, Color.White);
|
||||||
SpriteBatch.End();
|
SpriteBatch.End();
|
||||||
|
|
||||||
base.Draw(gameTime);
|
base.Draw(gameTime);
|
||||||
|
Reference in New Issue
Block a user