From 47854d631b29e3bd7c4cc43c390010d353a57c6a Mon Sep 17 00:00:00 2001 From: David Cernat Date: Wed, 26 Oct 2016 15:24:53 +0300 Subject: [PATCH] Avoid sending packets for 2 more ingame scripts --- apps/openmw/mwmp/Main.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/apps/openmw/mwmp/Main.cpp b/apps/openmw/mwmp/Main.cpp index a17ca63a6..d9f537ce9 100644 --- a/apps/openmw/mwmp/Main.cpp +++ b/apps/openmw/mwmp/Main.cpp @@ -230,7 +230,7 @@ void Main::PressedKey(int key) // should be ignored because of their potential for spam bool Main::isValidPacketScript(std::string script) { - static const int invalidPacketScriptsCount = 5; + static const int invalidPacketScriptsCount = 7; static const std::string invalidPacketScripts[invalidPacketScriptsCount] = { // Spammy shorts "OutsideBanner", @@ -238,7 +238,10 @@ bool Main::isValidPacketScript(std::string script) "dreamer_talkerEnable", // Spammy floats "Float", - "SignRotate" + "SignRotate", + // Spammy globals leading to crashes + "LegionUniform", + "OrdinatorUniform" }; for (int i = 0; i < invalidPacketScriptsCount; i++)