Permalink
Browse files

server also does movements in own model

  • Loading branch information...
1 parent c349cd3 commit 72ac01267eff81d2973343327f4e5b2f76d09d02 @NobodysNightmare committed Feb 24, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 BlockDefender/BlockDefender/Net/GameServer.cs
@@ -112,6 +112,8 @@ private void ProcessPacket(NetworkPacket packet, Socket source)
}
else if (packet is PlayerUpdatePacket)
{
+ var updatePacket = packet as PlayerUpdatePacket;
+ Playground.Players.Single(p => p.Id == updatePacket.Id).Update(updatePacket.Position, updatePacket.Heading);
BroadcastPacket(packet);
}
}

0 comments on commit 72ac012

Please sign in to comment.