[Client] Fix packet spam for repetitive setting of the same global value

pull/541/head
David Cernat 5 years ago
parent ceb16bb6f8
commit 56f084c9c0

@ -320,6 +320,16 @@ namespace MWScript
void InterpreterContext::setGlobalShort (const std::string& name, int value)
{
/*
Start of tes3mp addition
Avoid setting a global to a value it already is, preventing packet spam
*/
if (getGlobalFloat(name) == value) return;
/*
End of tes3mp addition
*/
/*
Start of tes3mp addition

Loading…
Cancel
Save