fix
OBS-URL: https://build.opensuse.org/package/show/games/widelands?expand=0&rev=24
This commit is contained in:
parent
29cb96cda4
commit
5405d537ed
20
widelands-constructor.patch
Normal file
20
widelands-constructor.patch
Normal file
@ -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;
|
||||||
|
}
|
@ -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
|
Source0: http://launchpad.net/widelands/build%{version}/build%{version}/+download/%{name}-build%{version}-src.tar.bz2
|
||||||
Source1: %{name}.desktop
|
Source1: %{name}.desktop
|
||||||
Patch0: %{name}-localedir.patch
|
Patch0: %{name}-localedir.patch
|
||||||
|
Patch1: %{name}-constructor.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-build
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: boost-devel
|
BuildRequires: boost-devel
|
||||||
@ -52,6 +53,7 @@ Data files for Widelands.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-build%{version}-src
|
%setup -q -n %{name}-build%{version}-src
|
||||||
%patch0
|
%patch0
|
||||||
|
%patch1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# recreate build_and_run.sh contents here
|
# recreate build_and_run.sh contents here
|
||||||
|
Loading…
Reference in New Issue
Block a user