Made chat spam speed check less aggressive

This commit is contained in:
juanjp600
2016-08-28 10:30:37 -03:00
parent 88facd65de
commit 20bcd477b0
+1 -1
View File
@@ -1515,7 +1515,7 @@ namespace Barotrauma.Networking
else else
{ {
float similarity = 0; //TODO: find good way to calculate score if this isn't good enough float similarity = 0; //TODO: find good way to calculate score if this isn't good enough
similarity += sender.ChatSpamSpeed; //the faster messages are being sent, the faster the filter will block similarity += sender.ChatSpamSpeed*(float)0.05; //the faster messages are being sent, the faster the filter will block
for (int i = 0; i < sender.ChatMessages.Count; i++) for (int i = 0; i < sender.ChatMessages.Count; i++)
{ {
float closeFactor = (float)1.0 / ((float)20.0 - i); float closeFactor = (float)1.0 / ((float)20.0 - i);