From 6406c9d055ec036e814d10fed165e640019c31da Mon Sep 17 00:00:00 2001 From: Ardub23 <48235540+Ardub23@users.noreply.github.com> Date: Sun, 9 Jul 2023 09:28:09 -0600 Subject: [PATCH] Sit to trigger squeaky board even if flying If the hero deliberately sits on the floor while flying over a squeaky board, then either they're trying to squeak it on purpose or they haven't noticed it. Either way, sitting should trigger it. --- src/trap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/trap.c b/src/trap.c index 77a99ea0d..e3b54a538 100644 --- a/src/trap.c +++ b/src/trap.c @@ -1270,7 +1270,8 @@ trapeffect_sqky_board( se_squeak_A, se_squeak_B_flat, se_squeak_B, }; boolean forcetrap = ((trflags & FORCETRAP) != 0 - || (trflags & FAILEDUNTRAP) != 0); + || (trflags & FAILEDUNTRAP) != 0 + || (Flying && (trflags & VIASITTING) != 0)); if (mtmp == &gy.youmonst) { if ((Levitation || Flying) && !forcetrap) {