src/settings.cpp
changeset 8427 143b0be22af1
parent 8424 4a488a90ccab
child 8450 dce58137301f
equal deleted inserted replaced
8426:89570a8b6ed0 8427:143b0be22af1
   433 		while (*s != 0 && *s != ' ' && *s != '\t' && *s != '|') s++;
   433 		while (*s != 0 && *s != ' ' && *s != '\t' && *s != '|') s++;
   434 
   434 
   435 		r = lookup_oneofmany(many, str, s - str);
   435 		r = lookup_oneofmany(many, str, s - str);
   436 		if (r == -1) return (uint32)-1;
   436 		if (r == -1) return (uint32)-1;
   437 
   437 
   438 		SETBIT(res, r); // value found, set it
   438 		SetBit(res, r); // value found, set it
   439 		if (*s == 0) break;
   439 		if (*s == 0) break;
   440 		str = s + 1;
   440 		str = s + 1;
   441 	}
   441 	}
   442 	return res;
   442 	return res;
   443 }
   443 }
  1682 			ClearGRFConfig(&c);
  1682 			ClearGRFConfig(&c);
  1683 			continue;
  1683 			continue;
  1684 		}
  1684 		}
  1685 
  1685 
  1686 		/* Mark file as static to avoid saving in savegame. */
  1686 		/* Mark file as static to avoid saving in savegame. */
  1687 		if (is_static) SETBIT(c->flags, GCF_STATIC);
  1687 		if (is_static) SetBit(c->flags, GCF_STATIC);
  1688 
  1688 
  1689 		/* Add item to list */
  1689 		/* Add item to list */
  1690 		*curr = c;
  1690 		*curr = c;
  1691 		curr = &c->next;
  1691 		curr = &c->next;
  1692 	}
  1692 	}