Package: netris
Version: 0.52-2
Severity: normal
Tags: patch

Hello.

Debian patch for 'n' broke -s (seed setting). Attaching patch that fixes
this.



-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (990, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.4.29-ow1
Locale: LANG=C, LC_CTYPE=pl_PL (charmap=ISO-8859-2)

Versions of packages netris depends on:
ii  libc6                       2.3.2.ds1-20 GNU C Library: Shared libraries an
ii  libncurses5                 5.4-4        Shared libraries for terminal hand

-- no debconf information

-- 
Piotrek
irc: #debian.pl
Mors Drosophilis melanogastribus!
diff -Naurp netris-0.52-2.orig/game.c netris-0.52-2/game.c
--- netris-0.52-2.orig/game.c   2005-03-17 20:39:13.000000000 +0100
+++ netris-0.52-2/game.c        2005-03-17 20:40:40.000000000 +0100
@@ -435,7 +435,8 @@ ExtFunc int main(int argc, char **argv)
                if (robotEnable)
                        InitRobot(robotProg);
                InitNet();
-               SRandom(time(0));
+               if (!initSeed)
+                       SRandom(time(0));
                if (initConn || waitConn) {
                        game = GT_classicTwo;
                        if(gameState != STATE_STARTING) {

Reply via email to