diff --git a/CHANGELOG.md b/CHANGELOG.md index a650679862..6eb233e52c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 @@ -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 diff --git a/gamemodes/terrortown/gamemode/shared/hud_elements/tttminiscoreboard/pure_skin_miniscoreboard.lua b/gamemodes/terrortown/gamemode/shared/hud_elements/tttminiscoreboard/pure_skin_miniscoreboard.lua index 5baf38dba6..8e86a5c5fc 100644 --- a/gamemodes/terrortown/gamemode/shared/hud_elements/tttminiscoreboard/pure_skin_miniscoreboard.lua +++ b/gamemodes/terrortown/gamemode/shared/hud_elements/tttminiscoreboard/pure_skin_miniscoreboard.lua @@ -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)