More security checks

This actually looks pretty bad, not gonna lie.
This commit is contained in:
juanjp600
2016-08-28 19:54:31 -03:00
parent b51afdd0cb
commit 73fc0cf724
4 changed files with 23 additions and 6 deletions
+4
View File
@@ -395,6 +395,10 @@ namespace Barotrauma
public void ReadNetworkData(NetIncomingMessage message, float sendingTime)
{
if (GameMain.Server != null)
{
return;
}
if (sendingTime < lastNetworkUpdateTime) return;
Vector2 newTargetPos = Vector2.Zero;