From e2f2166d247a76bc68321ad753799b7d775bf025 Mon Sep 17 00:00:00 2001 From: James R Date: Mon, 21 Oct 2019 14:20:29 -0700 Subject: [PATCH 1/2] Fix hang due to comparison not working on at least GCC 9.1 I have no idea what the fuck is going on here. k infinitely ascends. (Even above integer restrictions when I made it UINT8.) I can only imagine some kind of fuckery in the stack. Surely this is a compiler error. --- src/p_enemy.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/p_enemy.c b/src/p_enemy.c index f67d7d194..7e504f15c 100644 --- a/src/p_enemy.c +++ b/src/p_enemy.c @@ -3320,7 +3320,8 @@ void A_SkullAttack(mobj_t *actor) fixed_t oldradius = mobjinfo[MT_NULL].radius; fixed_t oldheight = mobjinfo[MT_NULL].height; mobj_t *check; - INT32 i, j, k; + INT32 i, j; + static INT32 k; boolean allow; angle_t testang; From ea0a0f4f3c7bc09d74e73b8f29b7a1ca2bd200c5 Mon Sep 17 00:00:00 2001 From: James R Date: Mon, 21 Oct 2019 14:28:22 -0700 Subject: [PATCH 2/2] Comment for insanity --- src/p_enemy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/p_enemy.c b/src/p_enemy.c index 7e504f15c..39fbd0fb8 100644 --- a/src/p_enemy.c +++ b/src/p_enemy.c @@ -3321,7 +3321,7 @@ void A_SkullAttack(mobj_t *actor) fixed_t oldheight = mobjinfo[MT_NULL].height; mobj_t *check; INT32 i, j; - static INT32 k; + static INT32 k;/* static for (at least) GCC 9.1 weirdness */ boolean allow; angle_t testang;