Moving camera with sub even if typing, server doesn't do impact damage to client characters, server sends cause of death in importantentityupdate if health<=0, fire sync fixes, lerping water surface in update instead of render,

This commit is contained in:
Regalis
2016-01-27 20:38:24 +02:00
parent 71faada355
commit 8cc12b6988
13 changed files with 111 additions and 45 deletions
+6 -1
View File
@@ -26,6 +26,8 @@ namespace Barotrauma.Lights
//what was the range of the light when HullsInRange were last updated
private float prevHullUpdateRange;
private Vector2 prevHullUpdatePosition;
private Vector2 position;
public Vector2 Position
{
@@ -33,9 +35,12 @@ namespace Barotrauma.Lights
set
{
if (position == value) return;
position = value;
if (Vector2.Distance(prevHullUpdatePosition, position) < 5.0f) return;
UpdateHullsInRange();
prevHullUpdatePosition = position;
}
}