Skip to content

Commit

Permalink
fixed wrong data display
Browse files Browse the repository at this point in the history
  • Loading branch information
TimGoll committed Oct 10, 2023
1 parent 7477cd3 commit 44a7209
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lua/ttt2/libraries/bodysearch.lua
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,9 @@ if CLIENT then

searchStreamData.show = LocalPlayer() == searchStreamData.base.inspector

-- cache search result in rag.bodySearchResult, e.g. useful for scoreboard
bodysearch.StoreSearchResult(searchStreamData)

if searchStreamData.show then
-- if there is more elaborate data already available
-- confirming this body, then this should be used instead
Expand All @@ -261,9 +264,6 @@ if CLIENT then

-- add this hack here to keep compatibility to the old scoreboard
searchStreamData.show_sb = searchStreamData.show or searchStreamData.base.isPublicPolicingSearch

-- cache search result in rag.bodySearchResult, e.g. useful for scoreboard
bodysearch.StoreSearchResult(searchStreamData)
end)

local damageToText = {
Expand Down

0 comments on commit 44a7209

Please sign in to comment.