ID of the entity a character is interacting with is also sent to the client controlling the character (should fix characters dragging someone at the server's end but not at the client's, or vice versa)

This commit is contained in:
Regalis
2017-03-15 21:30:24 +02:00
parent 8d8620047d
commit 4285cdde27
4 changed files with 83 additions and 69 deletions
+3 -5
View File
@@ -1,8 +1,6 @@
using FarseerPhysics;
using FarseerPhysics;
using FarseerPhysics.Dynamics;
using FarseerPhysics.Dynamics.Joints;
using Lidgren.Network;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Barotrauma.Networking;
@@ -1113,14 +1111,14 @@ namespace Barotrauma
}
}
private void SelectCharacter(Character character)
public void SelectCharacter(Character character)
{
if (character == null) return;
selectedCharacter = character;
}
private void DeselectCharacter()
public void DeselectCharacter()
{
if (selectedCharacter == null) return;