From cd9eb55145eabf5857df032262b11f8cd21ae8f2 Mon Sep 17 00:00:00 2001 From: MrX Date: Fri, 22 May 2026 19:32:27 -0300 Subject: [PATCH 1/2] Modify RemoveLighting to accept a boolean parameter --- plugin_sa/game_sa/CEntity.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin_sa/game_sa/CEntity.h b/plugin_sa/game_sa/CEntity.h index 30106db4..8ce1936d 100644 --- a/plugin_sa/game_sa/CEntity.h +++ b/plugin_sa/game_sa/CEntity.h @@ -98,7 +98,7 @@ class PLUGIN_API CEntity : public CPlaceable { void PreRender(); void Render(); bool SetupLighting(); - void RemoveLighting(); + void RemoveLighting(bool bReset); void FlagToDestroyWhenNextProcessed(); // funcs From dae30b7c0d6099168a3f4f4c5e25a37f5ae838d2 Mon Sep 17 00:00:00 2001 From: MrX Date: Fri, 22 May 2026 19:33:25 -0300 Subject: [PATCH 2/2] Modify RemoveLighting to accept a reset parameter --- plugin_sa/game_sa/CEntity.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin_sa/game_sa/CEntity.cpp b/plugin_sa/game_sa/CEntity.cpp index b2c14355..2a00e0fc 100644 --- a/plugin_sa/game_sa/CEntity.cpp +++ b/plugin_sa/game_sa/CEntity.cpp @@ -105,9 +105,9 @@ bool CEntity::SetupLighting() return ((bool (__thiscall *)(CEntity *))(*(void ***)this)[19])(this); } -void CEntity::RemoveLighting() +void CEntity::RemoveLighting(bool bReset) { - ((void (__thiscall *)(CEntity *))(*(void ***)this)[20])(this); + ((void (__thiscall *)(CEntity *, bool))(*(void ***)this)[20])(this, bReset); } void CEntity::FlagToDestroyWhenNextProcessed() @@ -371,4 +371,4 @@ void CEntity::RemoveEscalatorsForEntity() bool CEntity::IsEntityOccluded() { return ((bool (__thiscall *)(CEntity*))0x71FAE0)(this); -} \ No newline at end of file +}