Author: pdewacht-guest
Date: 2008-10-25 14:42:41 +0000 (Sat, 25 Oct 2008)
New Revision: 8291

Added:
   
packages/trunk/kiki-the-nano-bot/debian/patches/level-selection-with-no-levels-solved.patch
Modified:
   packages/trunk/kiki-the-nano-bot/debian/changelog
   packages/trunk/kiki-the-nano-bot/debian/patches/series
Log:
Fixed a crash that occured when using the level selection dialog
before solving any levels. (Closes: #503389)


Modified: packages/trunk/kiki-the-nano-bot/debian/changelog
===================================================================
--- packages/trunk/kiki-the-nano-bot/debian/changelog   2008-10-25 13:53:16 UTC 
(rev 8290)
+++ packages/trunk/kiki-the-nano-bot/debian/changelog   2008-10-25 14:42:41 UTC 
(rev 8291)
@@ -1,6 +1,8 @@
 kiki-the-nano-bot (1.0.2+dfsg1-2) unstable; urgency=low
 
   * List vorbis-tools as Build-Depends instead of Build-Depends-Indep.
+  * Fixed a crash that occured when using the level selection dialog
+    before solving any levels. (Closes: #503389)
 
  -- Peter De Wachter <[EMAIL PROTECTED]>  Sat, 25 Oct 2008 15:52:17 +0200
 

Added: 
packages/trunk/kiki-the-nano-bot/debian/patches/level-selection-with-no-levels-solved.patch
===================================================================
--- 
packages/trunk/kiki-the-nano-bot/debian/patches/level-selection-with-no-levels-solved.patch
                         (rev 0)
+++ 
packages/trunk/kiki-the-nano-bot/debian/patches/level-selection-with-no-levels-solved.patch
 2008-10-25 14:42:41 UTC (rev 8291)
@@ -0,0 +1,17 @@
+Kiki crashes if the user tries to use the level selection menu before
+finishing any level.
+
+Peter De Wachter ([EMAIL PROTECTED])
+placed in the public domain
+
+--- a/py/levelselection.py
++++ b/py/levelselection.py
+@@ -25,6 +25,8 @@
+     # 
............................................................................................................
    
+     
+     last_level = highscore.getLastAvailableLevel()
++    if last_level < 0:
++        last_level = 0
+     current_level = (level_index >= 0) and level_index or last_level 
+         
+     world.max_level_index = last_level

Modified: packages/trunk/kiki-the-nano-bot/debian/patches/series
===================================================================
--- packages/trunk/kiki-the-nano-bot/debian/patches/series      2008-10-25 
13:53:16 UTC (rev 8290)
+++ packages/trunk/kiki-the-nano-bot/debian/patches/series      2008-10-25 
14:42:41 UTC (rev 8291)
@@ -18,3 +18,4 @@
 fix-french-translation.patch
 fix-dutch-translation.patch
 ogg-sound.patch
+level-selection-with-no-levels-solved.patch


_______________________________________________
Pkg-games-commits mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/pkg-games-commits

Reply via email to