From 9777cfd5004ba60a52502fb579d61c0ff85ff06c Mon Sep 17 00:00:00 2001 From: Rachael Alexanderson Date: Sun, 8 Jan 2023 22:12:37 -0500 Subject: [PATCH] - change P_ShouldPassThroughPlayer to static inline to improve performance on repeated calls --- src/playsim/p_map.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/playsim/p_map.cpp b/src/playsim/p_map.cpp index 36c672361e..d01a718562 100644 --- a/src/playsim/p_map.cpp +++ b/src/playsim/p_map.cpp @@ -119,7 +119,7 @@ TArray portalhit; // //========================================================================== -bool P_ShouldPassThroughPlayer(AActor *self, AActor *other) +static inline bool P_ShouldPassThroughPlayer(AActor *self, AActor *other) { if (!(dmflags3 & DF3_NO_PLAYER_CLIP)) return false;