From 3ed57c3eff842888848f7c8651cb50b298bf7b41 Mon Sep 17 00:00:00 2001 From: Roman Fomin Date: Sat, 30 Apr 2022 20:21:39 +0700 Subject: [PATCH] fix overlapping uses of global variables in p_map.c for mbf21 complevel (#532) --- Source/p_map.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/p_map.c b/Source/p_map.c index 03d222bc..48878e6f 100644 --- a/Source/p_map.c +++ b/Source/p_map.c @@ -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)