- change P_ShouldPassThroughPlayer to static inline to improve performance on repeated calls

This commit is contained in:
Rachael Alexanderson 2023-01-08 22:12:37 -05:00
parent 2fa2533982
commit 9777cfd500

View file

@ -119,7 +119,7 @@ TArray<spechit_t> 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;