git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Moved parsers into a separate directory.
[stg.git]
/
projects
/
stargazer
/
settings_impl.cpp
diff --git
a/projects/stargazer/settings_impl.cpp
b/projects/stargazer/settings_impl.cpp
index 2bf8d08271bf2b32bf718398d7c964d09744153e..92670cb5082a345768582a2173ce06803fa0d43f 100644
(file)
--- a/
projects/stargazer/settings_impl.cpp
+++ b/
projects/stargazer/settings_impl.cpp
@@
-375,7
+375,7
@@
while (node)
if (strcasecmp(node->getName(), "FeeChargeType") == 0)
{
if (strcasecmp(node->getName(), "FeeChargeType") == 0)
{
- if (ParseUnsignedInRange(node->getValue(0), 0,
2
, &feeChargeType) != 0)
+ if (ParseUnsignedInRange(node->getValue(0), 0,
3
, &feeChargeType) != 0)
{
strError = "Incorrect FeeChargeType value: \'" + string(node->getValue(0)) + "\'";
return -1;
{
strError = "Incorrect FeeChargeType value: \'" + string(node->getValue(0)) + "\'";
return -1;
@@
-457,6
+457,13
@@
while (node)
}
}
}
}
+ if (strcasecmp(node->getName(), "ScriptParams") == 0)
+ {
+ for (int i = 0; node->getValue(i) != NULL; ++i)
+ {
+ scriptParams.push_back(node->getValue(i));
+ }
+ }
node = node->getNextNode();
}
node = node->getNextNode();
}
@@
-488,4
+495,4
@@
else if (detailStatPeriodStr == "1/6")
return -1;
}
return -1;
}
-//-----------------------------------------------------------------------------
+//-----------------------------------------------------------------------------
\ No newline at end of file