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.

This commit is contained in:
Jordon Moss 2020-06-01 23:54:14 -07:00 committed by Christoph Oelckers
parent d812c2997c
commit dd8192ebbf

View file

@ -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++;