- encountered a strange crash that after changing a map, InSubsector was not NULL and pointing to invalid data. So let's better NULL this variable explicitly each time a render loop is started.
This commit is contained in:
parent
4ebdcb7b6d
commit
e11a0986ce
3 changed files with 8 additions and 2 deletions
|
|
@ -66,6 +66,8 @@
|
|||
//EXTERN_CVAR (Int, tx)
|
||||
//EXTERN_CVAR (Int, ty)
|
||||
|
||||
extern subsector_t *InSubsector;
|
||||
|
||||
static void R_DrawSkyStriped (visplane_t *pl);
|
||||
|
||||
planefunction_t floorfunc;
|
||||
|
|
@ -1314,6 +1316,7 @@ void R_DrawSkyBoxes ()
|
|||
viewzStack.Push (viewz);
|
||||
visplaneStack.Push (pl);
|
||||
|
||||
InSubsector = NULL;
|
||||
R_RenderBSPNode (nodes + numnodes - 1);
|
||||
R_3D_ResetClip(); // reset clips (floor/ceiling)
|
||||
R_DrawPlanes ();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue