Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fix for integer division.
  • Loading branch information
JoelKovalcson authored Mar 23, 2019
commit dafdccedc3776d3ba8144012bd2dc8ab96c66b9e
4 changes: 2 additions & 2 deletions Essentials/Commands/VotingModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ private IEnumerable VoteCountdown(TimeSpan time)
}
else
{
double vr = _voteReg.Count / MySession.Static.Players.GetOnlinePlayerCount();
double vr = Convert.ToDouble(_voteReg.Count) / MySession.Static.Players.GetOnlinePlayerCount();
if (vr >= _command.TriggerRatio)
{
Context.Torch.CurrentSession.Managers.GetManager<IChatManagerClient>()
Expand Down Expand Up @@ -275,4 +275,4 @@ private string Pluralize(double num)
return num == 1 ? "" : "s";
}
}
}
}