Minor no-op changes for the compiler and/or XNA

This commit is contained in:
Ethan Lee 2015-11-14 13:46:16 -05:00
parent 430335c47a
commit 3cf99bb34f
3 changed files with 3 additions and 5 deletions

View File

@ -117,9 +117,7 @@ namespace TrueCraft.Client
public void PlayPack(string pack, float volume = 1.0f)
{
var i = MathHelper.Random.Next(0, AudioPacks[pack].Length);
var instance = AudioPacks[pack][i].CreateInstance();
instance.Volume = volume * EffectVolume;
instance.Play();
AudioPacks[pack][i].Play(volume * EffectVolume, 1.0f, 0.0f);
}
}
}

View File

@ -2,7 +2,7 @@
namespace TrueCraft.Client.Events
{
public class ChunkEventArgs
public class ChunkEventArgs : EventArgs
{
public ReadOnlyChunk Chunk { get; set; }

View File

@ -411,7 +411,7 @@ namespace TrueCraft.Client
GraphicsDevice.SetRenderTarget(null);
SpriteBatch.Begin();
SpriteBatch.Draw(RenderTarget, new Vector2(0));
SpriteBatch.Draw(RenderTarget, Vector2.Zero, Color.White);
SpriteBatch.End();
base.Draw(gameTime);