Skip to content

Commit

Permalink
Remove possible exploit
Browse files Browse the repository at this point in the history
  • Loading branch information
luigi-budd committed Oct 28, 2024
1 parent 3f8b300 commit 7a843ed
Showing 1 changed file with 17 additions and 15 deletions.
32 changes: 17 additions & 15 deletions src/Lua/Hooks/HUD/Drawers/role.lua
Original file line number Diff line number Diff line change
Expand Up @@ -67,21 +67,23 @@ local function HUD_RoleDrawer(v,p)
v.drawScaled(x + off, y, FU, patch, V_SNAPTOTOP|V_SNAPTORIGHT|V_50TRANS)
v.drawString(x + off, y + (2*FU), version, V_SNAPTOTOP|V_SNAPTORIGHT|V_80TRANS, "thin-fixed")

local mchance = p.mm_save.cons_murderer_chance
local schance = p.mm_save.cons_sheriff_chance

v.drawString(320*FU + off - 30*FU,
y + (2*FU),
string.format("%.2f",mchance).."%",
V_SNAPTOTOP|V_SNAPTORIGHT|V_REDMAP,
"thin-fixed-right"
)
v.drawString(320*FU + off,
y + (2*FU),
string.format("%.2f",schance).."%",
V_SNAPTOTOP|V_SNAPTORIGHT|V_BLUEMAP,
"thin-fixed-right"
)
if p == consoleplayer
local mchance = p.mm_save.cons_murderer_chance
local schance = p.mm_save.cons_sheriff_chance

v.drawString(320*FU + off - 30*FU,
y + (2*FU),
string.format("%.2f",mchance).."%",
V_SNAPTOTOP|V_SNAPTORIGHT|V_REDMAP,
"thin-fixed-right"
)
v.drawString(320*FU + off,
y + (2*FU),
string.format("%.2f",schance).."%",
V_SNAPTOTOP|V_SNAPTORIGHT|V_BLUEMAP,
"thin-fixed-right"
)
end
end

if p.spectator
Expand Down

0 comments on commit 7a843ed

Please sign in to comment.