A couple bugs

fred11

13-01-2010 19:07:46

I love Hydrax!
I've found a couple small bugs while playing with v0.5.1

In SimpleGrid::loadCfg there is a Copy & Paster Error, causing it to read ProjectedGrid values.

setOptions(
Options(CfgFileManager::_getIntValue(CfgFile, "SG_Complexity"),
CfgFileManager::_getSizeValue(CfgFile, "SG_MeshSize"),
CfgFileManager::_getFloatValue(CfgFile, "SG_Strength"),
CfgFileManager::_getBoolValue(CfgFile, "PG_Smooth"), // PG
CfgFileManager::_getBoolValue(CfgFile, "PG_ChoppyWaves"), // PG
CfgFileManager::_getFloatValue(CfgFile, "PG_ChoopyStrength"))); // PG

should be:

setOptions(
Options(CfgFileManager::_getIntValue(CfgFile, "SG_Complexity"),
CfgFileManager::_getSizeValue(CfgFile, "SG_MeshSize"),
CfgFileManager::_getFloatValue(CfgFile, "SG_Strength"),
CfgFileManager::_getBoolValue(CfgFile, "SG_Smooth"),
CfgFileManager::_getBoolValue(CfgFile, "SG_ChoppyWaves"),
CfgFileManager::_getFloatValue(CfgFile, "SG_ChoppyStrength")));


also PG_ChoopyStrength is used everywhere instead of PG_ChoppyStrength :D