Unstable 1.2.4.0
This commit is contained in:
@@ -162,6 +162,8 @@ namespace Barotrauma
|
||||
CanBeVisible =
|
||||
Sprite != null ||
|
||||
Prefab.DeformableSprite != null ||
|
||||
ParticleEmitters is { Length: > 0 } ||
|
||||
(GameMain.DebugDraw && Triggers is { Count: > 0 }) ||
|
||||
Prefab.OverrideProperties.Any(p => p != null && (p.Sprites.Any() || p.DeformableSprite != null));
|
||||
}
|
||||
|
||||
|
||||
@@ -23,7 +23,14 @@ namespace Barotrauma
|
||||
private Rectangle currentGridIndices;
|
||||
|
||||
public bool ForceRefreshVisibleObjects;
|
||||
|
||||
|
||||
partial void RemoveProjSpecific()
|
||||
{
|
||||
visibleObjectsBack.Clear();
|
||||
visibleObjectsMid.Clear();
|
||||
visibleObjectsFront.Clear();
|
||||
}
|
||||
|
||||
partial void UpdateProjSpecific(float deltaTime)
|
||||
{
|
||||
foreach (LevelObject obj in visibleObjectsBack)
|
||||
|
||||
Reference in New Issue
Block a user