(ad567dea) v0.9.7.1

This commit is contained in:
Juan Pablo Arce
2020-03-04 19:54:29 -03:00
parent 3c09ebe02f
commit 3e99a49383
212 changed files with 1970 additions and 3265 deletions
@@ -52,7 +52,7 @@ namespace Barotrauma
}
}
partial void ApplyProjSpecific(float deltaTime, Entity entity, IEnumerable<ISerializableEntity> targets, Hull hull, Vector2 worldPosition)
partial void ApplyProjSpecific(float deltaTime, Entity entity, List<ISerializableEntity> targets, Hull hull, Vector2 worldPosition)
{
if (entity == null) { return; }
@@ -116,13 +116,13 @@ namespace Barotrauma
{
if (entity is Item item && item.body != null)
{
angle = -item.body.Rotation;
if (item.body.Dir < 0.0f) { angle += MathHelper.Pi; }
angle = item.body.Rotation + ((item.body.Dir > 0.0f) ? 0.0f : MathHelper.Pi);
}
}
emitter.Emit(deltaTime, worldPosition, hull, angle: angle, particleRotation: angle);
}
emitter.Emit(deltaTime, worldPosition, hull, angle);
}
}
static partial void UpdateAllProjSpecific(float deltaTime)