forked from teamnwah/openmw-tes3coop
[Server] Trigger 'update' when added new rules in MasterClient
This commit is contained in:
parent
f2b8a939ef
commit
873da495b1
1 changed files with 2 additions and 0 deletions
|
@ -85,6 +85,7 @@ void MasterClient::SetRuleString(std::string key, std::string value)
|
||||||
rule.str = value;
|
rule.str = value;
|
||||||
rule.type = 's';
|
rule.type = 's';
|
||||||
queryData.rules.insert({key, rule});
|
queryData.rules.insert({key, rule});
|
||||||
|
updated = true;
|
||||||
}
|
}
|
||||||
mutexData.unlock();
|
mutexData.unlock();
|
||||||
}
|
}
|
||||||
|
@ -99,6 +100,7 @@ void MasterClient::SetRuleValue(std::string key, double value)
|
||||||
rule.val = value;
|
rule.val = value;
|
||||||
rule.type = 'v';
|
rule.type = 'v';
|
||||||
queryData.rules.insert({key, rule});
|
queryData.rules.insert({key, rule});
|
||||||
|
updated = true;
|
||||||
}
|
}
|
||||||
mutexData.unlock();
|
mutexData.unlock();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue