Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions plugin_sa/game_sa/CEntity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -371,4 +371,4 @@ void CEntity::RemoveEscalatorsForEntity()
bool CEntity::IsEntityOccluded()
{
return ((bool (__thiscall *)(CEntity*))0x71FAE0)(this);
}
}
2 changes: 1 addition & 1 deletion plugin_sa/game_sa/CEntity.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down