From dd8192ebbf92fc0c1d6ca7a2f0843430b612eb59 Mon Sep 17 00:00:00 2001 From: Jordon Moss Date: Mon, 1 Jun 2020 23:54:14 -0700 Subject: [PATCH] Fix bad call to updatesector in G_CollectSpawnPoints that broke spawns in overlapping sectors and TROR. p->cursectnum should equal the sprite's sectnum on initial spawn. --- source/duke3d/src/premap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/duke3d/src/premap.cpp b/source/duke3d/src/premap.cpp index f01f594fa..73a3cdf1b 100644 --- a/source/duke3d/src/premap.cpp +++ b/source/duke3d/src/premap.cpp @@ -1495,7 +1495,7 @@ static void G_CollectSpawnPoints(int gameMode) p.oq16ang = p.q16ang = fix16_from_int(s.ang); - updatesector(s.x, s.y, &p.cursectnum); + p.cursectnum = s.sectnum; pindex++;