Accepting request 424845 from home:nemysis:branches:games

Please accept these changes.

OBS-URL: https://build.opensuse.org/request/show/424845
OBS-URL: https://build.opensuse.org/package/show/games/7kaa?expand=0&rev=16
This commit is contained in:
Ferdinand Thiessen 2016-09-05 20:05:01 +00:00 committed by Git OBS Bridge
parent 4d0aa5a8ca
commit de8c5920fd
6 changed files with 32 additions and 115 deletions

View File

@ -1,64 +0,0 @@
diff -ruB 7kaa-2.14.5.orig/src/client/OFIRMIF.cpp 7kaa-2.14.5/src/client/OFIRMIF.cpp
--- 7kaa-2.14.5.orig/src/client/OFIRMIF.cpp 2015-05-19 03:00:20.000000000 +0200
+++ 7kaa-2.14.5/src/client/OFIRMIF.cpp 2015-09-25 16:23:43.405735779 +0200
@@ -491,7 +491,7 @@
x = INFO_X1+6+i%4*50;
y = pop_disp_y1+1+i/4*29;
- switch( mouse.single_click(x, y, x+27, y+23, 2) )
+ switch( mouse.any_click(x, y, x+27, y+23, LEFT_BUTTON) ? 1 : (mouse.any_click(x, y, x+27, y+23, RIGHT_BUTTON) ? 2 : 0) )
{
case 1: // left button to select worker
selected_worker_id = i+1;
diff -ruB 7kaa-2.14.5.orig/src/client/OF_BASE.cpp 7kaa-2.14.5/src/client/OF_BASE.cpp
--- 7kaa-2.14.5.orig/src/client/OF_BASE.cpp 2015-05-19 03:00:20.000000000 +0200
+++ 7kaa-2.14.5/src/client/OF_BASE.cpp 2015-09-25 17:05:59.616753330 +0200
@@ -238,8 +238,8 @@
//------ detect the overseer button -----//
- int rc = mouse.single_click(INFO_X1+6, INFO_Y1+58,
- INFO_X1+5+UNIT_LARGE_ICON_WIDTH, INFO_Y1+57+UNIT_LARGE_ICON_HEIGHT, 2 );
+ int rc = mouse.any_click(INFO_X1+6, INFO_Y1+58, INFO_X1+5+UNIT_LARGE_ICON_WIDTH, INFO_Y1+57+UNIT_LARGE_ICON_HEIGHT, LEFT_BUTTON) ? 1
+ : mouse.any_click(INFO_X1+6, INFO_Y1+58, INFO_X1+5+UNIT_LARGE_ICON_WIDTH, INFO_Y1+57+UNIT_LARGE_ICON_HEIGHT, RIGHT_BUTTON) ? 2 : 0;
if( rc==1 ) // display this overseer's info
{
diff -ruB 7kaa-2.14.5.orig/src/client/OF_CAMP.cpp 7kaa-2.14.5/src/client/OF_CAMP.cpp
--- 7kaa-2.14.5.orig/src/client/OF_CAMP.cpp 2015-05-19 03:00:20.000000000 +0200
+++ 7kaa-2.14.5/src/client/OF_CAMP.cpp 2015-09-25 17:07:32.962237653 +0200
@@ -421,8 +421,8 @@
//------ detect the overseer button -----//
- int rc = mouse.single_click(INFO_X1+6, INFO_Y1+58,
- INFO_X1+5+UNIT_LARGE_ICON_WIDTH, INFO_Y1+57+UNIT_LARGE_ICON_HEIGHT, 2 );
+ int rc = mouse.any_click(INFO_X1+6, INFO_Y1+58, INFO_X1+5+UNIT_LARGE_ICON_WIDTH, INFO_Y1+57+UNIT_LARGE_ICON_HEIGHT, LEFT_BUTTON) ? 1
+ : mouse.any_click(INFO_X1+6, INFO_Y1+58, INFO_X1+5+UNIT_LARGE_ICON_WIDTH, INFO_Y1+57+UNIT_LARGE_ICON_HEIGHT, RIGHT_BUTTON) ? 2 : 0;
if( rc==1 ) // display this overseer's info
{
diff -ruB 7kaa-2.14.5.orig/src/client/OF_MARK.cpp 7kaa-2.14.5/src/client/OF_MARK.cpp
--- 7kaa-2.14.5.orig/src/client/OF_MARK.cpp 2015-05-19 03:00:20.000000000 +0200
+++ 7kaa-2.14.5/src/client/OF_MARK.cpp 2015-09-25 16:22:12.651232950 +0200
@@ -814,7 +814,7 @@
}
else
{
- market_product_array[marketGoods->raw_id-1] = NULL;
+ market_product_array[marketGoods->product_raw_id-1] = NULL;
marketGoods->product_raw_id = 0;
}
}
diff -ruB 7kaa-2.14.5.orig/src/client/OVOLUME.cpp 7kaa-2.14.5/src/client/OVOLUME.cpp
--- 7kaa-2.14.5.orig/src/client/OVOLUME.cpp 2015-05-19 03:00:20.000000000 +0200
+++ 7kaa-2.14.5/src/client/OVOLUME.cpp 2015-09-25 16:24:29.805481641 +0200
@@ -70,7 +70,7 @@
long absY = posVolume.y >= 0 ? posVolume.y : -posVolume.y;
long dist = absX >= absY ? absX :absY;
if( dist <= DEFAULT_DIST_LIMIT )
- rel_vol = rel_vol = 100 - dist * 100 / DEFAULT_VOL_DROP;
+ rel_vol = 100 - dist * 100 / DEFAULT_VOL_DROP;
else
rel_vol = 0;

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:185308f54c829cde51a5a15231def904b8737e2a1502fa5469a2724ed0fa17a5
size 38473819

View File

@ -1,30 +0,0 @@
diff -ur 7kaa-2.14.5/src/client/OGAMEMP.cpp 7kaa-2.14.5_fix/src/client/OGAMEMP.cpp
--- 7kaa-2.14.5/src/client/OGAMEMP.cpp 2015-05-19 03:00:20.000000000 +0200
+++ 7kaa-2.14.5_fix/src/client/OGAMEMP.cpp 2015-09-29 17:05:01.007513932 +0200
@@ -4966,7 +4966,7 @@
String str;
snprintf(str,
- 255,
+ MAX_STR_LEN+1,
ngettext("This multiplayer saved game needs %d human players while now there is only %d human player.",
"This multiplayer saved game needs %d human players while now there are only %d human players.",
regPlayerCount),
@@ -5123,7 +5123,7 @@
String str;
snprintf(str,
- 255,
+ MAX_STR_LEN+1,
ngettext("This multiplayer saved game needs %d human players while now there is only %d human player.",
"This multiplayer saved game needs %d human players while now there are only %d human players.",
playerCount),
@@ -5141,7 +5141,7 @@
{
String str;
- snprintf(str, 255, _("This multiplayer saved game can only support %d human players while now there are %d human players. The game cannot start."), maxPlayer, playerCount);
+ snprintf(str, MAX_STR_LEN+1, _("This multiplayer saved game can only support %d human players while now there are %d human players. The game cannot start."), maxPlayer, playerCount);
box.msg(str);
return 0;

3
7kaa-2.14.6.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:fcbe2d7fc12fab7a2c08a14317264c9f96a6ebca18b28f3fee78925442bdd573
size 31220676

View File

@ -1,3 +1,23 @@
-------------------------------------------------------------------
Mon Sep 5 17:54:01 UTC 2016 - nemysis@openSUSE.org
- Update to 2.14.6, announce message:
* Added support for 7kfans.com match-making.
* Added LAN game browsing support.
* Added Mobilize Worker button on firms. (sraboy/Microvirus)
* Improvements to mouse acceleration.
* Fixes to mouse movement in fullscreen mode.
* Fixed a bug with 64-bit multiplayer matches.
* Begun translation work. (toaster)
* Fix character encoding with accented characters. (MicroVirus)
* Bugfixes…
- Remove obsolete patches 7kaa-2.14.5.patch and 7kaa-2.14.5_overflow.patch,
changed by Upstream
- Add description for patch gcc6_char_cast.patch
- Remove check %if 0%{?suse_version}, because is only for openSUSE
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Jun 16 14:03:33 UTC 2016 - normand@linux.vnet.ibm.com Thu Jun 16 14:03:33 UTC 2016 - normand@linux.vnet.ibm.com

View File

@ -19,27 +19,22 @@
# See also http://en.opensuse.org/openSUSE:Specfile_guidelines # See also http://en.opensuse.org/openSUSE:Specfile_guidelines
Name: 7kaa Name: 7kaa
Version: 2.14.5 Version: 2.14.6
Release: 0 Release: 0
Summary: Seven Kingdoms: Ancient Adversaries Summary: Seven Kingdoms: Ancient Adversaries
License: GPL-2.0 License: GPL-2.0
Group: Amusements/Games/StrategyGame Group: Amusements/Games/StrategyGame
Url: http://7kfans.com/ Url: http://7kfans.com/
Source0: http://sourceforge.net/projects/skfans/files/7KAA%20%{version}/%{name}-%{version}.tar.bz2 Source0: http://sourceforge.net/projects/skfans/files/7KAA%20%{version}/%{name}-%{version}.tar.xz
# PATCH-FIX-OPENSUSE - 7kaa-2.14.5.patch -- https://github.com/the3dfxdude/7kaa/issues/48 # PATCH-FIX-UPSTREAM - gcc6_char_cast.patch -- https://github.com/the3dfxdude/7kaa/issues/63
Patch0: %{name}-2.14.5.patch Patch0: gcc6_char_cast.patch
# PATCH-FIX-UPSTREAM - patch buffer overflow due to wrong size assumptions
Patch1: %{name}-2.14.5_overflow.patch
Patch2: gcc6_char_cast.patch
Source1: %{name}.png Source1: %{name}.png
Source2: %{name}.desktop Source2: %{name}.desktop
%if 0%{?suse_version}
BuildRequires: fdupes
BuildRequires: update-desktop-files
%endif
BuildRequires: enet-devel BuildRequires: enet-devel
BuildRequires: fdupes
BuildRequires: gcc-c++ BuildRequires: gcc-c++
BuildRequires: openal-soft-devel BuildRequires: openal-soft-devel
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(sdl2) BuildRequires: pkgconfig(sdl2)
Recommends: %{name}-music Recommends: %{name}-music
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -64,8 +59,6 @@ the GPL v2.
%prep %prep
%setup -q %setup -q
%patch0 -p1 %patch0 -p1
%patch1 -p1
%patch2 -p1
%build %build
export CXXFLAGS="%{optflags} -fno-strict-aliasing" export CXXFLAGS="%{optflags} -fno-strict-aliasing"
@ -81,13 +74,11 @@ install -Dm 0644 %{S:1} %{buildroot}%{_datadir}/pixmaps/%{name}.png
# install Desktop file # install Desktop file
install -Dm 0644 %{S:2} %{buildroot}%{_datadir}/applications/%{name}.desktop install -Dm 0644 %{S:2} %{buildroot}%{_datadir}/applications/%{name}.desktop
%if 0%{?suse_version}
%suse_update_desktop_file %{name} %suse_update_desktop_file %{name}
%fdupes -s %{buildroot}%{_prefix} %fdupes -s %{buildroot}%{_prefix}
%endif
%files %files
%defattr(-,root,root) %defattr(-,root,root,-)
%doc COPYING README %doc COPYING README
%{_bindir}/%{name} %{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop %{_datadir}/applications/%{name}.desktop