1
0
mirror of https://github.com/lidgren/lidgren-network-gen3.git synced 2026-05-15 22:56:30 +09:00

Fixed bug in XNA sample

This commit is contained in:
lidgren
2010-10-31 09:28:58 +00:00
parent e866600c98
commit 9b24fa7f38

View File

@@ -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);