Package: bsdgames
Version: 2.17-17
Severity: normal
Tags: patch


After a game of wump has finished, selecting "play again" and "not in
the same cave" lets you play in a cave with six bats and six pits. This goes on, until after the sixth iteration the game hangs, because it cannot find three rooms devoid of bats anymore.

I believe the following code to be at fault:

if (getans("In the same cave? (y-n) "))
  clear_things_in_cave();
else
  cave_init();

It should probably read:

clear_things_in_cave();
if (!getans("In the same cave? (y-n) "))
  cave_init();

since cave_init() does not do the resetting of bats/pits-flags.

Yours,
Jörg

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.30-2-686-bigmem (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages bsdgames depends on:
ii  libc6                     2.10.2-2       GNU C Library: Shared libraries
ii  libgcc1                   1:4.4.2-8      GCC support library
ii libncurses5 5.7+20090803-2 shared libraries for terminal hand
ii  libstdc++6                4.4.2-8        The GNU Standard C++ Library v3
ii wamerican [wordlist] 6-3 American English dictionary words ii wbritish [wordlist] 6-3 British English dictionary words f

bsdgames recommends no packages.

bsdgames suggests no packages.

-- no debconf information



--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to