2 parents 6026738 + 23217b5 commit a50a921Copy full SHA for a50a921
1 file changed
Essentials/Commands/VotingModule.cs
@@ -238,7 +238,7 @@ private IEnumerable VoteCountdown(TimeSpan time)
238
}
239
else
240
{
241
- double vr = _voteReg.Count / MySession.Static.Players.GetOnlinePlayerCount();
+ double vr = (double)_voteReg.Count / MySession.Static.Players.GetOnlinePlayerCount();
242
if (vr >= _command.TriggerRatio)
243
244
Context.Torch.CurrentSession.Managers.GetManager<IChatManagerClient>()
@@ -275,4 +275,4 @@ private string Pluralize(double num)
275
return num == 1 ? "" : "s";
276
277
278
-}
+}
0 commit comments