Skip to content

Commit 2559440

Browse files
authored
Fixed overhead icons issue (#1861)
1 parent 93c8070 commit 2559440

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ All notable changes to TTT2 will be documented here. Inspired by [keep a changel
2323
- Fixed continuous use not working correctly with entities like health stations (by @saibotk)
2424
- Fixed vFire explosions still killing players with `NoExplosionDamage` equipped (by @TW1STaL1CKY)
2525
- Fixed vFire explosions sometimes not damaging entities in the way they should, like explosive barrels (by @TW1STaL1CKY)
26+
- Fixed an issue where overhead icons from `TTT2ModifyOverheadIcon` were ignored when `shouldDrawDefault` was false (by @mexikoedi)
2627

2728
### Removed / Breaking Changes
2829

gamemodes/terrortown/gamemode/client/cl_targetid.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ function GM:PostDrawTranslucentRenderables(bDrawingDepth, bDrawingSkybox)
197197
local shouldDraw, material, color =
198198
hook.Run("TTT2ModifyOverheadIcon", ply, shouldDrawDefault)
199199

200-
if shouldDraw == false or not shouldDrawDefault then
200+
if shouldDraw == false or (shouldDraw ~= true and not shouldDrawDefault) then
201201
continue
202202
end
203203

0 commit comments

Comments
 (0)