mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-18 04:37:36 -05:00
bd71525b7a
* gnu/packages/games.scm (kiki): New variable. * gnu/packages/patches/kiki-level-selection-crash.patch, gnu/packages/patches/kiki-makefile.patch, gnu/packages/patches/kiki-missing-includes.patch, gnu/packages/patches/kiki-portability-64bit.patch: New patches. * gnu/local.mk (dist_patch_DATA): Add them.
19 lines
761 B
Diff
19 lines
761 B
Diff
Downloaded from https://anonscm.debian.org/viewvc/pkg-games/packages/trunk/kiki-the-nano-bot/debian/patches/level-selection-with-no-levels-solved.patch?revision=8291&view=co
|
|
|
|
Kiki crashes if the user tries to use the level selection menu before
|
|
finishing any level.
|
|
|
|
Peter De Wachter (pdewacht@gmail.com)
|
|
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
|