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...)
This commit is contained in:
Sally Coolatta 2022-05-24 15:44:27 -04:00
parent a896d73334
commit 6afa7dfc4b

View file

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