--- berusky-1.1.orig/debian/compat +++ berusky-1.1/debian/compat @@ -0,0 +1 @@ +5 --- berusky-1.1.orig/debian/changelog +++ berusky-1.1/debian/changelog @@ -0,0 +1,45 @@ +berusky (1.1-6) unstable; urgency=low + + * Added berusky.desktop, thanks to Francois Marier. Closes: #545107. + + -- Bart Martens Sun, 13 Sep 2009 09:42:25 +0200 + +berusky (1.1-5) unstable; urgency=low + + * debian/patches/09_hints.diff: Added. Fixes a problem with the level hint. + + -- Bart Martens Sat, 13 Jun 2009 12:28:18 +0200 + +berusky (1.1-4) unstable; urgency=low + + * debian/watch: Updated. + * debian/control: Standards-Version, Homepage. + * debian/menu: Updated. Closes: #445153. + + -- Bart Martens Sat, 05 Jul 2008 11:10:17 +0200 + +berusky (1.1-3) unstable; urgency=low + + * debian/patches/04_unfinished.diff: Added. + * debian/patches/05_no_editor.diff: Added. + * debian/patches/06_newline.diff: Added. + * debian/patches/07_quick_quit.diff: Added. + * debian/patches/08_backspace.diff: Added. + * debian/control, debian/rules: Use chrpath to delete rpath. + + -- Bart Martens Sun, 04 Nov 2007 19:51:26 +0100 + +berusky (1.1-2) unstable; urgency=low + + * debian/patches/02_endian.diff: Added. Closes: #431906. Patch by Benoît + Dejean , thanks. + * debian/patches/03_arraysize.diff: Added. + + -- Bart Martens Wed, 20 Jun 2007 01:53:22 +0200 + +berusky (1.1-1) unstable; urgency=low + + * Initial release. Closes: #426778. + + -- Bart Martens Wed, 30 May 2007 20:55:10 +0200 + --- berusky-1.1.orig/debian/control +++ berusky-1.1/debian/control @@ -0,0 +1,18 @@ +Source: berusky +Section: games +Priority: optional +Maintainer: Bart Martens +Build-Depends: cdbs, debhelper (>= 5), autotools-dev, sharutils, imagemagick, libsdl1.2-dev, libncurses5-dev, chrpath +Standards-Version: 3.8.3 +Homepage: http://www.anakreon.cz/en/Berusky.htm + +Package: berusky +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, berusky-data (>= 1.0-1) +Description: Logic game based on Sokoban + Berusky is a free logic game based on an ancient puzzle named Sokoban. An old + idea of moving boxes in a maze has been expanded with new logic items such as + explosives, stones, special gates and so on. In addition, up to five bugs can + cooperate and be controlled by the player. In order to leave each level + (there's about 120 levels in the game) it is necessary to own five keys and + also to have a free way to the exit. --- berusky-1.1.orig/debian/watch +++ berusky-1.1/debian/watch @@ -0,0 +1,3 @@ +version=3 +opts="uversionmangle=s/(\d)[\-_]?(rc\d+|pre-rc\d+|pre\d+a?)$/$1~$2/;s/[\-\.](source|src|orig|unix)$//;s/^(\d{8})/0.0.$1/;s/-(bin|osx)$/~$1/;s/^v(\d)/$1/;" \ +http://www.anakreon.cz/en/Download.htm .*berusky-(v?[\d\.]+(?:rc|rc\d+|pre-rc\d+|-unix|-source|-src|\.src|\.orig|[a-z]|b\d+|beta\d+-src|beta\d+)?)\.t.* --- berusky-1.1.orig/debian/copyright +++ berusky-1.1/debian/copyright @@ -0,0 +1,76 @@ +This package was debianized by Bart Martens on +Wed, 30 May 2007 20:55:10 +0200. + +It was downloaded from: + + http://www.anakreon.cz/en/Download.htm + +Upstream authors: + + Code + Martin "Komat" Stransky , www.anakreon.cz + + Game rules & Level design + Lubos "Shobul" Dolezal , www.anakreon.cz + + In-game graphics + Jan "Riva" Halfar , www.pixellive.net + + Menu graphics & logos + Vaclav "Mega" Hlobil , www.megadesign.cz + + Sound & Music + Martin Linda + + Translation to English + Radek Biba , people.redhat.com/rbiba + + Language check + Michal "Mipo" Policky + + Levels tests + Ondrej Soucek + + Contributors: + Michal "Kofola" Simonik + Pavel Dolezal + Milan Hamrik + Jan Chalupa + Igor Blaha + Patrik Sykora + Eva Sykorova + Milan Crha + Mary Stranska + +Copyright: + + Copyright (C) 1997-2007 AnakreoN + +License: + + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +On Debian systems, the complete text of the GNU General Public License +version 2 can be found in `/usr/share/common-licenses/GPL-2'. + +The Debian packaging is +Copyright (C) 2007-2009, Bart Martens +and is licensed under the GPL, see above. + +The file debian/berusky.ico.uue is the file berusky.ico uuencoded. The file +berusky.ico was downloaded from http://www.anakreon.cz/en/Download.htm and is +assumed part of the software and therefor +Copyright (C) 1997-2007 AnakreoN +and licensed under the GPL, see above. --- berusky-1.1.orig/debian/menu +++ berusky-1.1/debian/menu @@ -0,0 +1,4 @@ +?package(berusky):needs="X11" section="Games/Puzzles"\ + icon="berusky.xpm"\ + longtitle="Berusky logic game based on Sokoban"\ + title="Berusky" command="/usr/games/berusky" --- berusky-1.1.orig/debian/install +++ berusky-1.1/debian/install @@ -0,0 +1,2 @@ +debian/berusky.xpm usr/share/pixmaps/ +debian/berusky.desktop usr/share/applications/ --- berusky-1.1.orig/debian/rules +++ berusky-1.1/debian/rules @@ -0,0 +1,22 @@ +#!/usr/bin/make -f + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/class/autotools.mk +include /usr/share/cdbs/1/rules/simple-patchsys.mk +include /usr/share/cdbs/1/class/gnome.mk + +DEB_CONFIGURE_EXTRA_FLAGS += \ + --bindir=/usr/games \ + --sysconfdir=/etc/berusky \ + +update-config:: + [ -e debian/berusky.ico ] || uudecode debian/berusky.ico.uue + [ -e debian/berusky.xpm ] || \ + convert -resize 32x32 debian/berusky.ico debian/berusky.xpm + +reverse-config:: + rm -f debian/berusky.ico debian/berusky.xpm + +build/berusky:: + chrpath --delete src/berusky + --- berusky-1.1.orig/debian/berusky.desktop +++ berusky-1.1/debian/berusky.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Name=Berusky +Comment=Logic game based on Sokoban(TM) +Exec=berusky +Icon=berusky +Terminal=false +Type=Application +Categories=Game;LogicGame; --- berusky-1.1.orig/debian/berusky.ico.uue +++ berusky-1.1/debian/berusky.ico.uue @@ -0,0 +1,21 @@ +begin 644 debian/berusky.ico +M```!``$`("`0``````#H`@``%@```"@````@````0`````$`!`````````(` +M````````````````````````````!`0.``("-P`R,C8`'AYQ`!04I@!A87T` +MD)"7``T-S``3$^T`1T?G`)&1Z`#,S-(`WM[J`.+B]P#___\`____________ +M_______________W9F-F8V9FW______\S__]PQ(A$`(2$7W__\S?]FS_]S$B +M1!`"1"`6__]SS_8]_W8B*%0A)%5"$WS_<<_V/-TR1854$D6(5"$7_&//]A/- +M1%B(A")(F85"1]8QS_confcache <<\_ACEOF + # This file is a shell script that caches the results of configure + # tests run on this system so they can be shared between configure --- berusky-1.1.orig/debian/patches/07_quick_quit.diff +++ berusky-1.1/debian/patches/07_quick_quit.diff @@ -0,0 +1,29 @@ +According to the "game controlz" documentation, ALT+X should be "quit quickly". + + +--- ../orig/berusky-1.1/src/input.cpp 2007-04-05 11:48:57.000000000 +0200 ++++ src/input.cpp 2007-11-08 09:31:26.000000000 +0100 +@@ -57,6 +57,7 @@ + {LEVEL_EVENT(GC_SAVE_LEVEL),LEVEL_EVENT(GC_RESTORE_LEVEL),K_F2, 0,0,0,KEY_CLEAR_AFTER_PRESS}, + {LEVEL_EVENT(GC_LOAD_LEVEL),LEVEL_EVENT(GC_RESTORE_LEVEL),K_F3, 0,0,0,KEY_CLEAR_AFTER_PRESS}, + ++ {LEVEL_EVENT(GC_MENU_QUIT),LEVEL_EVENT(EV_NONE), K_X, 1,0,0,KEY_CLEAR_AFTER_PRESS}, + {LEVEL_EVENT(GC_MENU_QUIT),LEVEL_EVENT(EV_NONE), K_X, 0,1,0,KEY_CLEAR_AFTER_PRESS}, + + {LEVEL_EVENT(GC_STOP_LEVEL, TRUE, TRUE),LEVEL_EVENT(EV_NONE), K_E, 0,1,0,KEY_CLEAR_AFTER_PRESS} +@@ -71,6 +72,7 @@ + {LEVEL_EVENT(GC_RESTORE_LEVEL),LEVEL_EVENT(EV_NONE), K_ESC, 0,0,0,KEY_CLEAR_AFTER_PRESS}, + {LEVEL_EVENT(GC_RESTORE_LEVEL),LEVEL_EVENT(EV_NONE), K_R, 0,0,0,KEY_CLEAR_AFTER_PRESS}, + {LEVEL_EVENT(GC_RESTART_LEVEL),LEVEL_EVENT(EV_NONE), K_R, 0,1,0,KEY_CLEAR_AFTER_PRESS}, ++ {LEVEL_EVENT(GC_MENU_QUIT), LEVEL_EVENT(EV_NONE), K_X, 1,0,0,KEY_CLEAR_AFTER_PRESS}, + {LEVEL_EVENT(GC_MENU_QUIT), LEVEL_EVENT(EV_NONE), K_X, 0,1,0,KEY_CLEAR_AFTER_PRESS} + }; + +@@ -83,6 +85,7 @@ + {LEVEL_EVENT(GC_MENU_START), LEVEL_EVENT(EV_NONE),K_ESC, 0,0,0,KEY_CLEAR_AFTER_PRESS}, + {LEVEL_EVENT(GC_MENU_START), LEVEL_EVENT(EV_NONE),K_ENTER, 0,0,0,KEY_CLEAR_AFTER_PRESS}, + {LEVEL_EVENT(GC_MENU_START), LEVEL_EVENT(EV_NONE),K_SPACE, 0,0,0,KEY_CLEAR_AFTER_PRESS}, ++ {LEVEL_EVENT(GC_MENU_QUIT), LEVEL_EVENT(EV_NONE),K_X, 1,0,0,KEY_CLEAR_AFTER_PRESS}, + {LEVEL_EVENT(GC_MENU_QUIT), LEVEL_EVENT(EV_NONE),K_X, 0,1,0,KEY_CLEAR_AFTER_PRESS} + }; + --- berusky-1.1.orig/debian/patches/05_no_editor.diff +++ berusky-1.1/debian/patches/05_no_editor.diff @@ -0,0 +1,26 @@ +This patch prevents that the user of the game can switch to the editor via the game menu. +The reason for disabling this, is because on some systems there is problem with +switching the screen resolution that causes the entire X to freeze with a black screen. + + +--- ../orig/berusky-1.1/src/berusky_gui.cpp 2007-04-22 09:47:30.000000000 +0200 ++++ src/berusky_gui.cpp 2007-11-08 08:35:25.000000000 +0100 +@@ -108,7 +108,6 @@ + menu_item_draw(new_game, LEFT, TRUE, LEVEL_EVENT(GC_MENU_NEW_GAME)); + menu_item_draw(password, LEFT, TRUE, LEVEL_EVENT(GC_MENU_PASSWORD)); + menu_item_draw(help, LEFT, TRUE, LEVEL_EVENT(GC_MENU_HELP,FALSE)); +- menu_item_draw(editor, LEFT, TRUE, LEVEL_EVENT(GC_RUN_EDITOR)); + menu_item_draw(quit, LEFT, TRUE, LEVEL_EVENT(GC_MENU_QUIT)); + + p_font->alignment_set(CENTER); +@@ -1543,10 +1542,6 @@ + menu_in_game(MENU_ENTER); + break; + +- case GC_RUN_EDITOR: +- run_editor(); +- break; +- + case GI_MENU_BACK_POP: + back_pop(); + break; --- berusky-1.1.orig/debian/patches/09_hints.diff +++ berusky-1.1/debian/patches/09_hints.diff @@ -0,0 +1,43 @@ +Problem description: The level hint shown is the hint for +the first level of the level set, not the hint for the +selected level. +Solution: Set the level number before the level hint is shown, +so that the shown hint corresponds to the level number. + +diff -ruN -x '*.png' -x '*.jpg' -x '*.ogg' -x '*_image_archive' ../orig/berusky-1.1/src/berusky.cpp ./src/berusky.cpp +--- ../orig/berusky-1.1/src/berusky.cpp 2007-03-13 18:34:21.000000000 +0100 ++++ ./src/berusky.cpp 2009-06-13 21:15:53.000000000 +0200 +@@ -121,6 +121,11 @@ + return(FALSE); + } + ++void berusky::levelset_set_level( int level ) ++{ ++ state.level_num = level; ++} ++ + int berusky::levelset_get_level(void) + { + return(state.level_num); +diff -ruN -x '*.png' -x '*.jpg' -x '*.ogg' -x '*_image_archive' ../orig/berusky-1.1/src/berusky_gui.cpp ./src/berusky_gui.cpp +--- ../orig/berusky-1.1/src/berusky_gui.cpp 2007-04-22 09:47:30.000000000 +0200 ++++ ./src/berusky_gui.cpp 2009-06-13 21:18:52.000000000 +0200 +@@ -874,6 +874,7 @@ + + bool ret = p_ber->levelset_load(set); + assert(ret); ++ p_ber->levelset_set_level(level); + + p_grf->fill(0,0,GAME_RESOLUTION_X,GAME_RESOLUTION_Y,0); + p_font->alignment_set(CENTER); +diff -ruN -x '*.png' -x '*.jpg' -x '*.ogg' -x '*_image_archive' ../orig/berusky-1.1/src/berusky.h ./src/berusky.h +--- ../orig/berusky-1.1/src/berusky.h 2007-04-23 21:10:03.000000000 +0200 ++++ ./src/berusky.h 2009-06-13 20:43:19.000000000 +0200 +@@ -143,6 +143,7 @@ + bool levelset_load(int set); + bool levelset_is_custom(void); + ++ void levelset_set_level(int level); + int levelset_get_level(void); + int levelset_get_set(void); + int levelset_get_levelnum(void); --- berusky-1.1.orig/debian/patches/03_arraysize.diff +++ berusky-1.1/debian/patches/03_arraysize.diff @@ -0,0 +1,13 @@ +This patch fixes a crash in "intermediate level 18". + +--- ../orig/berusky-1.1/src/defines.h 2007-04-21 20:57:55.000000000 +0200 ++++ src/defines.h 2007-06-20 02:22:30.000000000 +0200 +@@ -365,7 +365,7 @@ + // ------------------------------------------------------- + #define ANIM_NONE 0 + #define ANIM_QUEUE_FIRST 1 +-#define ANIM_QUEUE_LENGHT 50 ++#define ANIM_QUEUE_LENGHT 100 + + + // Basic types --- berusky-1.1.orig/debian/patches/06_newline.diff +++ berusky-1.1/debian/patches/06_newline.diff @@ -0,0 +1,11 @@ +--- ../orig/berusky-1.1/src/berusky_gui.cpp 2007-04-22 09:47:30.000000000 +0200 ++++ src/berusky_gui.cpp 2007-11-08 08:51:52.000000000 +0100 +@@ -646,7 +646,7 @@ + p_font->print(NULL, 220, 100, _("Game Controls")); + + p_font->alignment_set(LEFT); +- p_font->print(NULL, 20, 140, _("Up to five bugs are available,\ ++ p_font->print(NULL, 20, 140, _("Up to five bugs are available,\n\ + which can be controlled by these keys:")); + + #define Y_DIFF 25 --- berusky-1.1.orig/debian/patches/04_unfinished.diff +++ berusky-1.1/debian/patches/04_unfinished.diff @@ -0,0 +1,112 @@ +This patch hides unfinished parts. + + +diff -ruN -x '*.png' -x '*.jpg' -x '*.ogg' -x '*_image_archive' ../orig/berusky-1.1/po/berusky.pot ./po/berusky.pot +--- ../orig/berusky-1.1/po/berusky.pot 2007-04-23 21:20:29.000000000 +0200 ++++ ./po/berusky.pot 2007-11-08 08:55:33.000000000 +0100 +@@ -252,14 +252,6 @@ + msgid ". . . . . . . switch among the bugs" + msgstr "" + +-#: src/berusky_gui.cpp:668 +-msgid ". . . . . . . . change the music" +-msgstr "" +- +-#: src/berusky_gui.cpp:669 +-msgid ". . . . . . . . demo" +-msgstr "" +- + #: src/berusky_gui.cpp:670 + msgid ". . . . . . quit quickly" + msgstr "" +diff -ruN -x '*.png' -x '*.jpg' -x '*.ogg' -x '*_image_archive' ../orig/berusky-1.1/README ./README +--- ../orig/berusky-1.1/README 2007-04-22 11:42:36.000000000 +0200 ++++ ./README 2007-11-08 08:55:43.000000000 +0100 +@@ -97,8 +97,6 @@ + 4 - Choose the fourth bug + 5 - Choose the fifth bug + +- N - change the music (not implemented yet) +- D - start recording a demo (not implemented yet) + ALT+X - quit quickly + + F1 - In game help +diff -ruN -x '*.png' -x '*.jpg' -x '*.ogg' -x '*_image_archive' ../orig/berusky-1.1/src/berusky_gui.cpp ./src/berusky_gui.cpp +--- ../orig/berusky-1.1/src/berusky_gui.cpp 2007-04-22 09:47:30.000000000 +0200 ++++ ./src/berusky_gui.cpp 2007-11-08 08:56:01.000000000 +0100 +@@ -656,8 +656,6 @@ + p_font->print(NULL, 20, start_y = Y_START, _("arrows")); + + p_font->print(NULL, 20, start_y += Y_DIFF, _("Tab")); +- p_font->print(NULL, 20, start_y += Y_DIFF, _("N")); +- p_font->print(NULL, 20, start_y += Y_DIFF, _("D")); + p_font->print(NULL, 20, start_y += Y_DIFF, _("ALT+X")); + p_font->print(NULL, 20, start_y += Y_DIFF, _("F1")); + p_font->print(NULL, 20, start_y += Y_DIFF, _("F2")); +@@ -665,8 +663,6 @@ + + p_font->print(NULL, 69, start_y = Y_START, _(" . . . . . . . move the bug")); + p_font->print(NULL, 86, start_y += Y_DIFF, _(". . . . . . . switch among the bugs")); +- p_font->print(NULL, 60, start_y += Y_DIFF, _(". . . . . . . . change the music")); +- p_font->print(NULL, 60, start_y += Y_DIFF, _(". . . . . . . . demo")); + p_font->print(NULL, 110, start_y += Y_DIFF, _(". . . . . . quit quickly")); + p_font->print(NULL, 60, start_y += Y_DIFF, _(". . . . . . . . Help")); + p_font->print(NULL, 60, start_y += Y_DIFF, _(". . . . . . . . Save level")); +diff -ruN -x '*.png' -x '*.jpg' -x '*.ogg' -x '*_image_archive' ../orig/berusky-1.1/src/main.cpp ./src/main.cpp +--- ../orig/berusky-1.1/src/main.cpp 2007-04-22 11:08:10.000000000 +0200 ++++ ./src/main.cpp 2007-11-08 08:54:55.000000000 +0100 +@@ -69,10 +69,6 @@ + printf(_("Using: berusky [-e [level.lv3]] [-u level.lv3]\n\n")); + printf(_(" -e [level.lv3] -run level editor\n")); + printf(_(" -u level.lv3 -run level\n")); +-/* TODO - not implemented yet +- printf(_("Using: berusky [-e [level.lv3]] [-u level.lv3] [-d level.dm]\n\n")); +- printf(_(" -d level.dm -run demo.dm\n")); +-*/ + exit(0); + } + +@@ -133,11 +129,6 @@ + main_queue.add(LEVEL_EVENT(GC_RUN_LEVEL_LINE, p_garg)); + break; + +- /* Run demo */ +- case USER_DEMO: +- //main_queue.add(LEVEL_EVENT(GC_RUN_LEVEL_LINE, p_garg)); +- break; +- + /* WTF? */ + default: + assert(0); +@@ -319,12 +310,6 @@ + gmode = USER_LEVEL; + p_garg = argv[2]; + } +- /* Run demo */ +- else if(argc > 2 && (argv[1][0] != '-' || argv[1][1] == 'd')) +- { +- gmode = USER_DEMO; +- p_garg = argv[2]; +- } + /* Run normal game from menu */ + else if(argc == 1) + { +@@ -351,7 +336,6 @@ + void start_logo_draw(GAME_MODE mode) + { + switch(mode) { +- case USER_DEMO: + case USER_LEVEL: + case MENU: + { +diff -ruN -x '*.png' -x '*.jpg' -x '*.ogg' -x '*_image_archive' ../orig/berusky-1.1/src/main.h ./src/main.h +--- ../orig/berusky-1.1/src/main.h 2007-04-21 13:29:09.000000000 +0200 ++++ ./src/main.h 2007-11-08 08:54:55.000000000 +0100 +@@ -31,7 +31,6 @@ + typedef enum game_mode { + + USER_LEVEL, +- USER_DEMO, + MENU, + EDITOR + --- berusky-1.1.orig/debian/patches/02_endian.diff +++ berusky-1.1/debian/patches/02_endian.diff @@ -0,0 +1,65 @@ +Patch by Benoît Dejean . +Fixes bug #431906. + +--- src/level_game.cpp 2007-03-26 22:17:02.000000000 +0200 ++++ src/level_game.cpp.new 2007-07-07 16:14:49.000000000 +0200 +@@ -25,6 +25,8 @@ + * + */ + ++#include ++ + #include "berusky.h" + + /**************************************************************** +@@ -173,6 +175,17 @@ + return(file_exists(NULL, p_file)); + } + ++ ++static inline word word_from_le(word w) ++{ ++#if BYTE_ORDER == BIG_ENDIAN ++ return static_cast(w >> 8) | static_cast(w << 8); ++#else ++ return w; ++#endif ++} ++ ++ + void level_generic::level_import(LEVEL_DISK *p_lev) + { + item_handle item; +@@ -185,27 +198,27 @@ + for(y = 0; y < LEVEL_CELLS_Y; y++) { + + // Import correction for floor +- item = p_lev->floor[y][x][0]; ++ item = word_from_le(p_lev->floor[y][x][0]); + if(item) + item = NO_ITEM; + + if(p_repo->item_valid(item)) +- cell_set(x, y, LAYER_FLOOR, item, p_lev->floor[y][x][1], p_lev->floor[y][x][2], true); ++ cell_set(x, y, LAYER_FLOOR, item, word_from_le(p_lev->floor[y][x][1]), word_from_le(p_lev->floor[y][x][2]), true); + else + cell_clear(x, y, LAYER_FLOOR, true); + + // Import correction for items +- item = p_lev->level[y][x][0]; ++ item = word_from_le(p_lev->level[y][x][0]); + if(!item) + item = NO_ITEM; + + if(p_repo->item_valid(item)) +- cell_set(x, y, LAYER_ITEMS, item, p_lev->level[y][x][1], p_lev->level[y][x][2], true); ++ cell_set(x, y, LAYER_ITEMS, item, word_from_le(p_lev->level[y][x][1]), word_from_le(p_lev->level[y][x][2]), true); + else + cell_clear(x, y, LAYER_ITEMS, true); + + // Import correction for players +- player = p_lev->players[y][x]; ++ player = word_from_le(p_lev->players[y][x]); + if(player == NO_PLAYER) + item = NO_ITEM; + else { --- berusky-1.1.orig/debian/patches/08_backspace.diff +++ berusky-1.1/debian/patches/08_backspace.diff @@ -0,0 +1,13 @@ +Fixes backspace key in password editor. + +--- ../orig/berusky-1.1/src/berusky_gui.cpp 2007-04-22 09:47:30.000000000 +0200 ++++ src/berusky_gui.cpp 2007-11-08 10:52:24.000000000 +0100 +@@ -248,7 +248,7 @@ + bool character = key_to_ascii(data,&ascii_char); + int len = strlen(password); + +- if(character) { ++ if(character && ascii_char >= ' ') { + if(len < MAX_PASSWORD-2) { + password[len] = ascii_char; + password[len+1] = '\0';