From 6aa6521fb45960a92f1d109f6cbf166edbf91415 Mon Sep 17 00:00:00 2001 From: Sally Coolatta Date: Mon, 18 May 2020 14:52:26 -0400 Subject: [PATCH] Allow spectators through Block Players lines --- src/p_map.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/p_map.c b/src/p_map.c index a6306bb19..fec884f66 100644 --- a/src/p_map.c +++ b/src/p_map.c @@ -1941,7 +1941,7 @@ static boolean PIT_CheckLine(line_t *ld) { if (ld->flags & ML_IMPASSABLE) // block objects from moving through this linedef. return false; - if (tmthing->player && ld->flags & ML_BLOCKPLAYERS) + if (tmthing->player && !tmthing->player->spectator && ld->flags & ML_BLOCKPLAYERS) return false; // SRB2Kart: Only block players, not items } @@ -3307,7 +3307,7 @@ static boolean PTR_SlideTraverse(intercept_t *in) if (li->flags & ML_IMPASSABLE) goto isblocking; - if (slidemo->player && li->flags & ML_BLOCKPLAYERS) + if (slidemo->player && !slidemo->player->spectator && li->flags & ML_BLOCKPLAYERS) goto isblocking; }