Skip to content

Commit

Permalink
fix: quickhud in demos
Browse files Browse the repository at this point in the history
  • Loading branch information
NeKzor authored and ThisAMJ committed Mar 11, 2024
1 parent c7168d8 commit 825a774
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Features/EntityList.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ int EntityList::GetEntityInfoIndexByHandle(void *entity) {
}

bool EntityList::IsPortalGun(const CBaseHandle &handle) {
if (engine->demoplayer->IsPlaying()) return true;
if (engine->IsCoop() && engine->IsOrange()) return true; // FIXME: can't get server stuffs
auto info = this->GetEntityInfoByIndex(handle.GetEntryIndex());
if (info->m_pEntity == nullptr) {
Expand Down

0 comments on commit 825a774

Please sign in to comment.