fix overlapping uses of global variables in p_map.c for mbf21 complevel (#532)

This commit is contained in:
Roman Fomin 2022-04-30 20:21:39 +07:00 committed by GitHub
parent cae303933b
commit 3ed57c3eff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2226,10 +2226,13 @@ void P_CreateSecNodeList(mobj_t *thing,fixed_t x,fixed_t y)
// [FG] Overlapping uses of global variables in p_map.c
// http://prboom.sourceforge.net/mbf-bugs.html
if (demo_compatibility)
if (demo_compatibility || mbf21)
{
tmthing = saved_tmthing;
tmflags = saved_tmflags;
}
if (demo_compatibility)
{
tmx = saved_tmx;
tmy = saved_tmy;
if (tmthing)