~ubuntu-branches/ubuntu/karmic/neverball/karmic

« back to all changes in this revision

Viewing changes to debian/patches/putt_scores.patch

  • Committer: Bazaar Package Importer
  • Author(s): Tamas SZERB
  • Date: 2008-03-15 16:12:46 UTC
  • mfrom: (3.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080315161246-2d2jxkbrq3i9cdof
Tags: 1.4.0-6
The issue with not having any text in the menu is already fixed by the
ttf-bitstream-vera bug (#461276) so I close this bug (Closes: #295130)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--- neverball-1.4.0.orig/putt/hole.c
 
2
+++ neverball-1.4.0/putt/hole.c
 
3
@@ -134,7 +134,7 @@
 
4
 
 
5
     if (p <= party)
 
6
     {
 
7
-        for (h = 1; h <= hole && h <= 18; h++)
 
8
+        for (h = 1; h <= hole && h < count; h++)
 
9
             T += score_v[h][p];
 
10
 
 
11
         sprintf(str, "%d", T);
 
12
@@ -152,7 +152,7 @@
 
13
 
 
14
     if (p <= party)
 
15
     {
 
16
-        for (h = 1; h <= hole && h <= 9; h++)
 
17
+        for (h = 1; h <= hole && h <= (count / 2); h++)
 
18
             T += score_v[h][p];
 
19
 
 
20
         sprintf(str, "%d", T);
 
21
@@ -167,10 +167,11 @@
 
22
     static char str[MAXSTR];
 
23
 
 
24
     int h, T = 0;
 
25
+    int out = count / 2;
 
26
 
 
27
-    if (hole > 9 && p <= party)
 
28
+    if (hole > out && p <= party)
 
29
     {
 
30
-        for (h = 10; h <= hole && h <= 18; h++)
 
31
+        for (h = out + 1; h <= hole && h < count; h++)
 
32
             T += score_v[h][p];
 
33
 
 
34
         sprintf(str, "%d", T);