Skip to content
This repository has been archived by the owner on Sep 13, 2022. It is now read-only.

Commit

Permalink
fix no imposters when playing with 3 plys
Browse files Browse the repository at this point in the history
  • Loading branch information
Blaubeeree committed May 25, 2021
1 parent 9b61c61 commit 2bc7021
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/moreroles/sv_roleselection.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ local function GetSelectableRoles(update)
and role.cvars.minPlayers:GetInt() <= plyCount
and role.cvars.random:GetInt() >= math.random(100))
then
selectableRoles[role.id] = math.min(role.cvars.max:GetInt(), math.floor(role.cvars.pct:GetFloat() * plyCount))
selectableRoles[role.id] = math.Clamp(math.floor(role.cvars.pct:GetFloat() * plyCount), 1, role.cvars.max:GetInt())
end
end

Expand Down

0 comments on commit 2bc7021

Please sign in to comment.