From 4000169a88fdf70f39eefcbe99e53a37e70f5a75 Mon Sep 17 00:00:00 2001 From: RD42 <42702181+dashr9230@users.noreply.github.com> Date: Wed, 7 Aug 2024 19:04:19 +0800 Subject: [PATCH] [saco] Implement/match `CEntity::IsCollisionCheckingEnabled()` --- saco/game/entity.cpp | 8 ++++++++ saco/game/entity.h | 1 + 2 files changed, 9 insertions(+) diff --git a/saco/game/entity.cpp b/saco/game/entity.cpp index 7231fb1..13c3fe1 100644 --- a/saco/game/entity.cpp +++ b/saco/game/entity.cpp @@ -504,6 +504,14 @@ void CEntity::SetCollisionChecking(int iCheck) //----------------------------------------------------------- +BOOL CEntity::IsCollisionCheckingEnabled() +{ + if(m_pEntity && m_pEntity->vtable != 0x863C40) + { + return (BYTE)(m_pEntity->dwProcessingFlags & 1); + } + return TRUE; +} //----------------------------------------------------------- diff --git a/saco/game/entity.h b/saco/game/entity.h index 5652954..0f0aaca 100644 --- a/saco/game/entity.h +++ b/saco/game/entity.h @@ -36,6 +36,7 @@ public: BOOL HasExceededWorldBoundries(float fPX, float fZX, float fPY, float fNY); void SetCollisionChecking(int iCheck); + BOOL IsCollisionCheckingEnabled(); virtual void Add(); virtual void Remove(); BOOL IsAdded();