Changeset - r23005:7d413d2dc989
[Not reviewed]
master
0 1 0
SamuXarick - 6 years ago 2018-09-20 20:31:38
43006711+SamuXarick@users.noreply.github.com
Fix #6892: [Script] CONFIG_RANDOM did not use the full parameter range (#6902)
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/script/script_config.cpp
Show inline comments
 
@@ -36,7 +36,7 @@ void ScriptConfig::Change(const char *na
 
		 *  for the Script that have the random flag to a random value. */
 
		for (ScriptConfigItemList::const_iterator it = this->info->GetConfigList()->begin(); it != this->info->GetConfigList()->end(); it++) {
 
			if ((*it).flags & SCRIPTCONFIG_RANDOM) {
 
				this->SetSetting((*it).name, InteractiveRandomRange((*it).max_value - (*it).min_value) + (*it).min_value);
 
				this->SetSetting((*it).name, InteractiveRandomRange((*it).max_value + 1 - (*it).min_value) + (*it).min_value);
 
			}
 
		}
 
		this->AddRandomDeviation();
0 comments (0 inline, 0 general)