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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user