diff --git a/widelands-constructor.patch b/widelands-constructor.patch new file mode 100644 index 0000000..cfea3a8 --- /dev/null +++ b/widelands-constructor.patch @@ -0,0 +1,20 @@ +--- src/editor/ui_menus/editor_main_menu_new_map.cc ++++ src/editor/ui_menus/editor_main_menu_new_map.cc +@@ -113,7 +113,7 @@ Main_Menu_New_Map::Main_Menu_New_Map(Edi + posx, posy, width, height, + g_gr->get_picture(PicMod_UI, "pics/but1.png"), + &Main_Menu_New_Map::button_clicked, *this, 4, +- Widelands::World::World(m_worlds[m_currentworld].c_str()).get_name()); ++ Widelands::World(m_worlds[m_currentworld].c_str()).get_name()); + + posy += height + spacing + spacing + spacing; + +@@ -142,7 +142,7 @@ void Main_Menu_New_Map::button_clicked(i + if (m_currentworld == m_worlds.size()) + m_currentworld = 0; + m_world->set_title +- (Widelands::World::World(m_worlds[m_currentworld].c_str()).get_name ++ (Widelands::World(m_worlds[m_currentworld].c_str()).get_name + ()); + break; + } diff --git a/widelands.spec b/widelands.spec index db3a2cf..4b3bb20 100644 --- a/widelands.spec +++ b/widelands.spec @@ -8,6 +8,7 @@ URL: http://www.widelands.org Source0: http://launchpad.net/widelands/build%{version}/build%{version}/+download/%{name}-build%{version}-src.tar.bz2 Source1: %{name}.desktop Patch0: %{name}-localedir.patch +Patch1: %{name}-constructor.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-build BuildRequires: gcc-c++ BuildRequires: boost-devel @@ -52,6 +53,7 @@ Data files for Widelands. %prep %setup -q -n %{name}-build%{version}-src %patch0 +%patch1 %build # recreate build_and_run.sh contents here