]> git.stg.codes - stg.git/blobdiff - projects/stargazer/settings_impl.cpp
Moved CHG_USER and SEND_MESSAGE parsers from global scope.
[stg.git] / projects / stargazer / settings_impl.cpp
index 8e4acceeb033b6f84c4cdfd744fe9225947ebd32..92670cb5082a345768582a2173ce06803fa0d43f 100644 (file)
@@ -243,7 +243,7 @@ while (node)
         {
         rules = node->getValue(0);
         }
         {
         rules = node->getValue(0);
         }
-       
+
     if (strcasecmp(node->getName(), "DetailStatWritePeriod") == 0)
         {
         if (ParseDetailStatWritePeriod(node->getValue(0)) != 0)
     if (strcasecmp(node->getName(), "DetailStatWritePeriod") == 0)
         {
         if (ParseDetailStatWritePeriod(node->getValue(0)) != 0)
@@ -457,14 +457,11 @@ while (node)
             }
         }
 
             }
         }
 
-        if (strcasecmp(node->getName(), "ScriptParams") == 0)
+    if (strcasecmp(node->getName(), "ScriptParams") == 0)
         {
         {
-            int i;
-            i=0;
-            while (node->getValue(i)!=NULL)
+        for (int i = 0; node->getValue(i) != NULL; ++i)
             {
             {
-                scriptParams.push_back(node->getValue(i));
-                i++;
+            scriptParams.push_back(node->getValue(i));
             }
         }
     node = node->getNextNode();
             }
         }
     node = node->getNextNode();