From 76569ff4fba09f22ed4a06b8073deaed7f64a2e3 Mon Sep 17 00:00:00 2001 From: MW Date: Sat, 10 Mar 2007 20:30:25 +0000 Subject: A PhysX physics plugin (that actually uses physX now but currently only works on windows) Can now change direction when walking without stopping Flying works when using the Physx dll --- src/OpenSimClient.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/OpenSimClient.cs') diff --git a/src/OpenSimClient.cs b/src/OpenSimClient.cs index 50d8c78..dd698e4 100644 --- a/src/OpenSimClient.cs +++ b/src/OpenSimClient.cs @@ -135,8 +135,8 @@ namespace OpenSim { if(ent.localid == multipleupdate.ObjectData[ i ].ObjectLocalID) { - ent.position = pos; - ((OpenSim.world.Primitive)ent).UpdateFlag = true; + ((OpenSim.world.Primitive)ent).UpdatePosition( pos); + } } @@ -191,6 +191,7 @@ namespace OpenSim OpenSim_Main.local_world.Entities.Remove(this.AgentID); } //need to do other cleaning up here too + OpenSim_Main.sim.ClientThreads.Remove(this.userEP); this.ClientThread.Abort(); break; case PacketType.ChatFromViewer: @@ -222,7 +223,7 @@ namespace OpenSim { foreach (Packet packet in NeedAck.Values) { - if (now - packet.TickCount > RESEND_TIMEOUT) + if ((now - packet.TickCount > RESEND_TIMEOUT) && (!packet.Header.Resent)) { ServerConsole.MainConsole.Instance.WriteLine("Resending " + packet.Type.ToString() + " packet, " + (now - packet.TickCount) + "ms have passed"); -- cgit v1.1