From a291ed21fe92e30f017ed2877f5358436125bc93 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 2 Dec 2018 00:40:52 +0100 Subject: [PATCH] - fixed the AngleToVector calls in stateprovider.txt. This looks like a search & replace gone wrong. --- wadsrc/static/zscript/inventory/stateprovider.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wadsrc/static/zscript/inventory/stateprovider.txt b/wadsrc/static/zscript/inventory/stateprovider.txt index 28024fe44..5e1b715ba 100644 --- a/wadsrc/static/zscript/inventory/stateprovider.txt +++ b/wadsrc/static/zscript/inventory/stateprovider.txt @@ -123,7 +123,7 @@ class StateProvider : Inventory { bool temp = false; double ang = Angle - 90; - Vector2 ofs = AngleToVector(Spawnofs_xy); + Vector2 ofs = AngleToVector(ang, Spawnofs_xy); Actor proj = SpawnPlayerMissile(missile, bangle, ofs.X, ofs.Y, Spawnheight); if (proj) { @@ -167,7 +167,7 @@ class StateProvider : Inventory { bool temp = false; double ang = Angle - 90; - Vector2 ofs = AngleToVector(Spawnofs_xy); + Vector2 ofs = AngleToVector(ang, Spawnofs_xy); Actor proj = SpawnPlayerMissile(missile, bangle, ofs.X, ofs.Y, Spawnheight); if (proj) { @@ -209,7 +209,7 @@ class StateProvider : Inventory if (ti) { double ang = Angle - 90; - Vector2 ofs = AngleToVector(Spawnofs_xy); + Vector2 ofs = AngleToVector(ang, spawnofs_xy); double shootangle = Angle; if (flags & FPF_AIMATANGLE) shootangle += spawnangle;