misc/flags_js.xhtml
changeset 15725 4e1ea1bdd803
parent 15605 969bc30928da
child 15977 f81fe8250ed9
equal deleted inserted replaced
15724:ff7291bc811f 15725:4e1ea1bdd803
   167     var flagState = 0; // 0 = hedgewars, 1 = country flag, 2 = community flag ("cm_")
   167     var flagState = 0; // 0 = hedgewars, 1 = country flag, 2 = community flag ("cm_")
   168 
   168 
   169     for (var i=0;i<flags.length;i++)
   169     for (var i=0;i<flags.length;i++)
   170     {
   170     {
   171         var flag = flags[i];
   171         var flag = flags[i];
       
   172         // Skip CPU flags
       
   173         if (flag === "cpu" || flag === "cpu_plain")
       
   174             continue;
   172 
   175 
   173         var oldFlagState = flagState;
   176         var oldFlagState = flagState;
   174         if (flagState === 0 && flag !== "hedgewars")
   177         if (flagState === 0 && flag !== "hedgewars")
   175             flagState++;
   178             flagState++;
   176         else if (flagState === 1 && flag.startsWith("cm_"))
   179         else if (flagState === 1 && flag.startsWith("cm_"))