equal
deleted
inserted
replaced
568 |
568 |
569 for (; x != 0; x >>= 1, i++) { |
569 for (; x != 0; x >>= 1, i++) { |
570 start = many; |
570 start = many; |
571 while (*many != 0 && *many != '|') many++; // advance to the next element |
571 while (*many != 0 && *many != '|') many++; // advance to the next element |
572 |
572 |
573 if (HASBIT(x, 0)) { // item found, copy it |
573 if (HasBit(x, 0)) { // item found, copy it |
574 if (!init) *buf++ = '|'; |
574 if (!init) *buf++ = '|'; |
575 init = false; |
575 init = false; |
576 if (start == many) { |
576 if (start == many) { |
577 buf += sprintf(buf, "%d", i); |
577 buf += sprintf(buf, "%d", i); |
578 } else { |
578 } else { |
1668 if (!FillGRFDetails(c, is_static)) { |
1668 if (!FillGRFDetails(c, is_static)) { |
1669 const char *msg; |
1669 const char *msg; |
1670 |
1670 |
1671 if (c->status == GCS_NOT_FOUND) { |
1671 if (c->status == GCS_NOT_FOUND) { |
1672 msg = "not found"; |
1672 msg = "not found"; |
1673 } else if (HASBIT(c->flags, GCF_UNSAFE)) { |
1673 } else if (HasBit(c->flags, GCF_UNSAFE)) { |
1674 msg = "unsafe for static use"; |
1674 msg = "unsafe for static use"; |
1675 } else if (HASBIT(c->flags, GCF_SYSTEM)) { |
1675 } else if (HasBit(c->flags, GCF_SYSTEM)) { |
1676 msg = "system NewGRF"; |
1676 msg = "system NewGRF"; |
1677 } else { |
1677 } else { |
1678 msg = "unknown"; |
1678 msg = "unknown"; |
1679 } |
1679 } |
1680 |
1680 |