mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-28 11:09:40 +00:00
[Client] Fix packet spam for repetitive setting of the same global value
This commit is contained in:
parent
ceb16bb6f8
commit
56f084c9c0
1 changed files with 10 additions and 0 deletions
|
@ -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…
Reference in a new issue