From 2ba201ccffa7543130f4e365f86c8367d9e595e3 Mon Sep 17 00:00:00 2001 From: metalgearsloth Date: Sat, 24 Jul 2021 13:04:52 +1000 Subject: [PATCH] Revert "Hotfix ExplosionLaunchedComponent" This reverts commit 6b98e65456b233f62eb6f8ff7d206b35715f9adf. --- .../Explosion/Components/ExplosionLaunchedComponent.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Content.Server/Explosion/Components/ExplosionLaunchedComponent.cs b/Content.Server/Explosion/Components/ExplosionLaunchedComponent.cs index 12324ae14c..b48507ef4c 100644 --- a/Content.Server/Explosion/Components/ExplosionLaunchedComponent.cs +++ b/Content.Server/Explosion/Components/ExplosionLaunchedComponent.cs @@ -16,9 +16,6 @@ namespace Content.Server.Explosion.Components var sourceLocation = eventArgs.Source; var targetLocation = eventArgs.Target.Transform.Coordinates; - - if (sourceLocation.Equals(targetLocation)) return; - var direction = (targetLocation.ToMapPos(Owner.EntityManager) - sourceLocation.ToMapPos(Owner.EntityManager)).Normalized; var throwForce = eventArgs.Severity switch @@ -27,7 +24,7 @@ namespace Content.Server.Explosion.Components ExplosionSeverity.Light => 20, _ => 0, }; - Owner.TryThrow(direction, throwForce); + Owner.TryThrow(direction * throwForce); } } }