You are not logged in

get_tileset_list() repeatedly calls tileset_read_toplevel() to get a list of tilesets. However, it's documented as having side-effects, and whether or not those comments are correct, it certainly calls set_city_names_font_sizes() which has global side-effects.

Dunno whether that's best considered a bug in tileset_read_toplevel(). Maybe there's a less invasive way to enumerate the existing tilesets?

Copyright (C) 2004-2006, the Gna! people. Posted items are owned by whoever posted them.
Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.