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.
This commit is contained in:
Ardub23
2023-07-09 09:28:09 -06:00
committed by GitHub
parent 7b32ce02ea
commit 6406c9d055

View File

@@ -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) {