r3380 - in packages/trunk/hex-a-hop/debian: . patches

Samuel Hocevar sho at alioth.debian.org
Thu Jul 12 15:29:47 UTC 2007


Author: sho
Date: 2007-07-12 15:29:47 +0000 (Thu, 12 Jul 2007)
New Revision: 3380

Added:
   packages/trunk/hex-a-hop/debian/patches/patch-hex-a-hop-better-than-par.diff
Modified:
   packages/trunk/hex-a-hop/debian/changelog
   packages/trunk/hex-a-hop/debian/patches/series
Log:
hex-a-hop (0.0.20070315-2) UNRELEASED; urgency=low

  * patch-hex-a-hop-better-than-par.diff:
    + Display a different level tile when the user beat the par.

 -- Sam Hocevar (Debian packages) <sam+deb at zoy.org>  Thu, 12 Jul 2007 17:15:14 +0200


Modified: packages/trunk/hex-a-hop/debian/changelog
===================================================================
--- packages/trunk/hex-a-hop/debian/changelog	2007-07-12 13:47:34 UTC (rev 3379)
+++ packages/trunk/hex-a-hop/debian/changelog	2007-07-12 15:29:47 UTC (rev 3380)
@@ -1,3 +1,10 @@
+hex-a-hop (0.0.20070315-2) UNRELEASED; urgency=low
+
+  * patch-hex-a-hop-better-than-par.diff:
+    + Display a different level tile when the user beat the par.
+
+ -- Sam Hocevar (Debian packages) <sam+deb at zoy.org>  Thu, 12 Jul 2007 17:15:14 +0200
+
 hex-a-hop (0.0.20070315-1) unstable; urgency=low
 
   * Initial release (Closes: #431912)

Added: packages/trunk/hex-a-hop/debian/patches/patch-hex-a-hop-better-than-par.diff
===================================================================
--- packages/trunk/hex-a-hop/debian/patches/patch-hex-a-hop-better-than-par.diff	                        (rev 0)
+++ packages/trunk/hex-a-hop/debian/patches/patch-hex-a-hop-better-than-par.diff	2007-07-12 15:29:47 UTC (rev 3380)
@@ -0,0 +1,28 @@
+diff -puriN hex-a-hop.old/hex_puzzzle.cpp hex-a-hop/hex_puzzzle.cpp
+--- hex-a-hop.old/hex_puzzzle.cpp	2007-07-06 16:18:54.000000000 +0200
++++ hex-a-hop/hex_puzzzle.cpp	2007-07-12 16:50:10.000000000 +0200
+@@ -2151,7 +2151,7 @@ struct HexPuzzle : public State
+ 
+ 			int par = GetPar(x);
+ 			if (progress.general.scoringOn && l->PassesPar( par ))
+-				t = 4;
++				t = l->BeatsPar( par ) ? 40 : 4;
+ 		}
+ 		if (recurse) 
+ 			return t;
+diff -puriN hex-a-hop.old/savestate.h hex-a-hop/savestate.h
+--- hex-a-hop.old/savestate.h	2007-07-06 16:18:54.000000000 +0200
++++ hex-a-hop/savestate.h	2007-07-12 16:41:35.000000000 +0200
+@@ -88,6 +88,12 @@ public:
+ 
+ 		return score <= bestScore;
+ 	}
++	bool BeatsPar(int par)
++	{
++		if (!Completed())
++			return false;
++		return bestScore < par;
++	}
+ 	bool PassesPar(int par)
+ 	{
+ 		if (!Completed())

Modified: packages/trunk/hex-a-hop/debian/patches/series
===================================================================
--- packages/trunk/hex-a-hop/debian/patches/series	2007-07-12 13:47:34 UTC (rev 3379)
+++ packages/trunk/hex-a-hop/debian/patches/series	2007-07-12 15:29:47 UTC (rev 3380)
@@ -1 +1,2 @@
 proper_directories.patch
+patch-hex-a-hop-better-than-par.diff




More information about the Pkg-games-commits mailing list