You've already forked lidgren-network-gen3
mirror of
https://github.com/lidgren/lidgren-network-gen3.git
synced 2026-05-17 23:56:30 +09:00
Fixed bug in XNA sample
This commit is contained in:
@@ -114,7 +114,7 @@ namespace XnaGameClient
|
|||||||
foreach (var kvp in positions)
|
foreach (var kvp in positions)
|
||||||
{
|
{
|
||||||
// use player unique identifier to choose an image
|
// 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
|
// draw player
|
||||||
spriteBatch.Draw(textures[num], kvp.Value, Color.White);
|
spriteBatch.Draw(textures[num], kvp.Value, Color.White);
|
||||||
|
|||||||
Reference in New Issue
Block a user