Changeset - r24137:b4a80ae58007
[Not reviewed]
master
0 1 0
SamuXarick - 5 years ago 2020-03-31 12:58:27
43006711+SamuXarick@users.noreply.github.com
Fix: [Script] Random deviation upper bound range should be inclusive
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/script/script_config.cpp
Show inline comments
 
@@ -131,7 +131,7 @@ void ScriptConfig::AddRandomDeviation()
 
{
 
	for (ScriptConfigItemList::const_iterator it = this->GetConfigList()->begin(); it != this->GetConfigList()->end(); it++) {
 
		if ((*it).random_deviation != 0) {
 
			this->SetSetting((*it).name, InteractiveRandomRange((*it).random_deviation * 2) - (*it).random_deviation + this->GetSetting((*it).name));
 
			this->SetSetting((*it).name, InteractiveRandomRange((*it).random_deviation * 2 + 1) - (*it).random_deviation + this->GetSetting((*it).name));
 
		}
 
	}
 
}
0 comments (0 inline, 0 general)