Skip to content

Commit

Permalink
Mini Scoreboard Confirmed Spectator Fix (#1157)
Browse files Browse the repository at this point in the history
  • Loading branch information
EntranceJew authored Dec 10, 2023
1 parent fecb28c commit 6e2ce0a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ All notable changes to TTT2 will be documented here. Inspired by [keep a changel
- `DNumSliderTTT2`, `DCheckBoxLabelTTT2`, `DComboBoxTTT2`
- Added dashing to propspec (by @TimGoll)
- Added new functions to database module
-`database.SetDefaultValuesFromItem(accessName, itemName, item)`
-`database.SetDefaultValuesFromItem(accessName, itemName, item)`

### Changed

Expand Down Expand Up @@ -99,6 +99,7 @@ All notable changes to TTT2 will be documented here. Inspired by [keep a changel
- net.SendStream() can now also handle tables larger than 256kB, which exceeded the maximum net receive buffer
- Fixed nil value of SetValue in `DNumSliderTTT2` , `DCheckBoxLabelTTT2`. And fix nil value for boxCache[name] in `PlayerModels` (by @sbzlzh)
- Prevent weapon_tttbase Lua errors with NPCs (by @BuzzHaddaBig in base TTT)
- Fix miniscoreboard HUD from showing confirmed players that switched to spectator as having been revived (by @EntranceJew)

### Deprecated

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ function HUDELEMENT:Draw()
surface.SetDrawColor(clr(ply_color))
surface.DrawRect(tmp_x, tmp_y, self.ply_ind_size, self.ply_ind_size)

if ply:WasRevivedAndConfirmed() then
if not ply:IsSpec() and ply:WasRevivedAndConfirmed() then
draw.FilteredTexture(tmp_x + 3, tmp_y + 3, self.ply_ind_size - 6, self.ply_ind_size - 6, self.icon_revived, 180, COLOR_BLACK)
elseif ply:OnceFound() and not ply:RoleKnown() then -- draw marker on indirect confirmed bodies
draw.FilteredTexture(tmp_x + 3, tmp_y + 3, self.ply_ind_size - 6, self.ply_ind_size - 6, self.icon_in_conf, 120, COLOR_BLACK)
Expand Down

0 comments on commit 6e2ce0a

Please sign in to comment.