equal
deleted
inserted
replaced
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_")) |