fix fixes (#649)
This commit is contained in:
@@ -190,9 +190,6 @@ public sealed class GravityWellSystem : SharedGravityWellSystem
|
|||||||
var epicenter = mapPos.Position;
|
var epicenter = mapPos.Position;
|
||||||
var minRange2 = MathF.Max(minRange * minRange, MinGravPulseRange); // Cache square value for speed. Also apply a sane minimum value to the minimum value so that div/0s don't happen.
|
var minRange2 = MathF.Max(minRange * minRange, MinGravPulseRange); // Cache square value for speed. Also apply a sane minimum value to the minimum value so that div/0s don't happen.
|
||||||
|
|
||||||
var bodyQuery = GetEntityQuery<PhysicsComponent>();
|
|
||||||
var xformQuery = GetEntityQuery<TransformComponent>();
|
|
||||||
|
|
||||||
foreach(var entity in _lookup.GetEntitiesInRange(mapPos.MapId, epicenter, maxRange, flags: LookupFlags.Dynamic | LookupFlags.Sundries))
|
foreach(var entity in _lookup.GetEntitiesInRange(mapPos.MapId, epicenter, maxRange, flags: LookupFlags.Dynamic | LookupFlags.Sundries))
|
||||||
{
|
{
|
||||||
if (!entity.Valid)
|
if (!entity.Valid)
|
||||||
|
|||||||
Reference in New Issue
Block a user