[tecnoballz] 01/03: Add bouncer-restriction.patch

Markus Koschany apo-guest at moszumanska.debian.org
Sat Mar 21 19:21:28 UTC 2015


This is an automated email from the git hooks/post-receive script.

apo-guest pushed a commit to branch master
in repository tecnoballz.

commit 23a2e093d0b57131528fc1f586e0179eb81e4bd4
Author: Markus Koschany <apo at gambaru.de>
Date:   Sat Mar 21 19:51:30 2015 +0100

    Add bouncer-restriction.patch
    
    - Fix minimum distance of bouncers to walls in boss levels.
    
    Thanks: Celelibi for the report and Bruno Ethvignot <bruno at tlk.biz> for the
    patch
    Closes: #776262
---
 debian/patches/bouncer-restriction.patch | 30 ++++++++++++++++++++++++++++++
 debian/patches/series                    |  1 +
 2 files changed, 31 insertions(+)

diff --git a/debian/patches/bouncer-restriction.patch b/debian/patches/bouncer-restriction.patch
new file mode 100644
index 0000000..cb6d363
--- /dev/null
+++ b/debian/patches/bouncer-restriction.patch
@@ -0,0 +1,30 @@
+From: Markus Koschany <apo at gambaru.de>
+Date: Sat, 21 Mar 2015 19:50:41 +0100
+Subject: bouncer restriction
+
+---
+ src/controller_paddles.cc | 11 +++++++++--
+ 1 file changed, 9 insertions(+), 2 deletions(-)
+
+diff --git a/src/controller_paddles.cc b/src/controller_paddles.cc
+index b9f1706..35a12b1 100644
+--- a/src/controller_paddles.cc
++++ b/src/controller_paddles.cc
+@@ -57,8 +57,15 @@ controller_paddles::controller_paddles ()
+       width_maxi = 32 * resolution;
+       width_mini = 32 * resolution;
+       bottom_y_coord = (232 - 8) * resolution;
+-      min_coordinate = 16 * resolution;
+-      max_coordinate = 300 * resolution;
++      min_coordinate = 16;
++      if (resolution == 1)
++        {
++          max_coordinate = 303; 
++        }
++      else 
++        {
++          max_coordinate = 622; 
++        }
+     }
+  else
+     {
diff --git a/debian/patches/series b/debian/patches/series
index 8598b42..c91da1c 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -3,3 +3,4 @@ custom-CXXFLAGS.patch
 manpage.patch
 gigablitz-gauge.patch
 right-click-game-over.patch
+bouncer-restriction.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/tecnoballz.git



More information about the Pkg-games-commits mailing list