Skip to content

Commit

Permalink
Update map_vote.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillbrest123 authored Nov 5, 2024
1 parent 418fad6 commit 48862d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/mapvote/client/modules/map_vote.lua
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ function MapVote.StartVote( maps, endTime )
timer.Remove( "MapVoteCountdown" )
return
end
local timeLeft = math.Round( math.Clamp( endTime - CurTime(), 0, math.huge ) )
local timeLeft = math.ceil( math.Clamp( endTime - CurTime(), 0, math.huge ) )

countdownLabel:SetText( string.FormattedTime( timeLeft or 0, "%02i:%02i" ) )
end )
Expand Down

0 comments on commit 48862d6

Please sign in to comment.