From 9b24fa7f38b5e50ef7a2bd888a9e9794ddba1728 Mon Sep 17 00:00:00 2001 From: lidgren Date: Sun, 31 Oct 2010 09:28:58 +0000 Subject: [PATCH] Fixed bug in XNA sample --- Samples/XNA sample/XnaGameClient/Game1.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Samples/XNA sample/XnaGameClient/Game1.cs b/Samples/XNA sample/XnaGameClient/Game1.cs index f81c4af..08b898e 100644 --- a/Samples/XNA sample/XnaGameClient/Game1.cs +++ b/Samples/XNA sample/XnaGameClient/Game1.cs @@ -114,7 +114,7 @@ namespace XnaGameClient foreach (var kvp in positions) { // use player unique identifier to choose an image - int num = ((int)Math.Abs(kvp.Key)) % textures.Length; + int num = Math.Abs((int)kvp.Key) % textures.Length; // draw player spriteBatch.Draw(textures[num], kvp.Value, Color.White);