From 10d1ef5447b94d17024dc0f4bdd1b7b017431a23 Mon Sep 17 00:00:00 2001 From: smatz Date: Fri, 22 May 2009 15:23:47 +0000 Subject: (svn r16379) -Codechange: remove GetNumTowns(), GetNumIndustries() and GetActiveCompanyCount(), use PoolItem::GetNumItems() instead --- src/settings_gui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/settings_gui.cpp') diff --git a/src/settings_gui.cpp b/src/settings_gui.cpp index 6d734af00..6b834cf34 100644 --- a/src/settings_gui.cpp +++ b/src/settings_gui.cpp @@ -142,7 +142,7 @@ static void ShowTownnameDropdown(Window *w, int sel) DropDownList *list = new DropDownList(); for (TownList::iterator it = townnames.begin(); it != townnames.end(); it++) { - list->push_back(new DropDownListStringItem((*it).first, (*it).second, !(_game_mode == GM_MENU || GetNumTowns() == 0 || (*it).second == sel))); + list->push_back(new DropDownListStringItem((*it).first, (*it).second, !(_game_mode == GM_MENU || Town::GetNumItems() == 0 || (*it).second == sel))); } ShowDropDownList(w, list, sel, GOW_TOWNNAME_DROPDOWN); @@ -305,7 +305,7 @@ struct GameOptionsWindow : Window { break; case GOW_TOWNNAME_DROPDOWN: // Town names - if (_game_mode == GM_MENU || GetNumTowns() == 0) { + if (_game_mode == GM_MENU || Town::GetNumItems() == 0) { this->opt->game_creation.town_name = index; InvalidateWindow(WC_GAME_OPTIONS, 0); } -- cgit v1.2.3-54-g00ecf