From 19f5eac518ddeae1f9d272b29665e3b525e81774 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 31 Aug 2022 18:44:15 +0200 Subject: [PATCH] - SpawnActor in SpawnShell --- source/games/sw/src/jweapon.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/source/games/sw/src/jweapon.cpp b/source/games/sw/src/jweapon.cpp index cf203d69e..99234dde5 100644 --- a/source/games/sw/src/jweapon.cpp +++ b/source/games/sw/src/jweapon.cpp @@ -2076,17 +2076,11 @@ int DoFlag(DSWActor* actor) int SpawnShell(DSWActor* actor, int ShellNum) { - int nx, ny, nz; short id=0,velocity=0; STATE* p=nullptr; extern STATE s_UziShellShrap[]; extern STATE s_ShotgunShellShrap[]; - - nx = actor->int_pos().X; - ny = actor->int_pos().Y; - nz = int_ActorZOfMiddle(actor); - switch (ShellNum) { case -2: @@ -2102,7 +2096,7 @@ int SpawnShell(DSWActor* actor, int ShellNum) break; } - auto actorNew = SpawnActor(STAT_SKIP4, id, p, actor->sector(), nx, ny, nz, actor->int_ang(), 64); + auto actorNew = SpawnActor(STAT_SKIP4, id, p, actor->sector(), ActorVectOfMiddle(actor), actor->spr.angle, 64); actorNew->spr.zvel = -(velocity);