From 6afa7dfc4bb5148fb8d90ce21b1080cd51425778 Mon Sep 17 00:00:00 2001 From: Sally Coolatta <tehrealsalt@gmail.com> Date: Tue, 24 May 2022 15:44:27 -0400 Subject: [PATCH] Set tmx & tmy for P_LineOpening in bot code (The more this issue happens, the more we need to take the GZDoom approach of keeping this shit in a struct that you have to put in as a function argument, instead of global variable hellzone...) --- src/p_sight.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/p_sight.c b/src/p_sight.c index cdc8df8646..ca2ba77cd6 100644 --- a/src/p_sight.c +++ b/src/p_sight.c @@ -729,6 +729,8 @@ static boolean P_CrossBotTraversalSubsector(size_t num, register traceblocking_t } // set openrange, opentop, openbottom + tmx = tb->compareThing->x; + tmy = tb->compareThing->y; P_LineOpening(line, tb->compareThing); maxstep = P_GetThingStepUp(tb->compareThing); -- GitLab