[comp.sources.games.bugs] suntetris2 : Official BugFix #2

shortley@CompSci.Bristol.AC.UK (M. Shortly) (07/17/89)

Greetings to all tetris players out there.

A couple of bugs have been found in the code.
i) Some blocks in certain orientations had no score defined for them.
ii) The game never speeded up (until you Paused and Restarted).

     The fixes for these two bugs are given below.  I suggest that if
     you implement these bug fixes you do the following :
         Start a new high score file.
         Refer to your version as "version 1.2" in any correspondence

      Special thanks to Steve Jacquot <saj@lucifer.psyc.virginia.edu>,
      who found these two bugs.

-------- BUG FIXES --------

    Error in shape score definitions.
       In shape.c :
           Line 30 : should be "shape[0].pointv[3] = 8;"
           Line 80 : should be "shape[2].pointv[1] = 5;"

    Speed doesn't change - unless Pause & Start are clicked on.
        Fixes :
              in support.c : add "update_timer();" after line 179 ("rows++;")
        in window.c  : add function definition :

              update_timer()
              {
                      stop_timer();   /* Stop processing at old speed */
                      start_timer();  /* Start processing at new speed */
              }


-------- End of BUG FIXES --------

Regards,

Martyn Shortley

----------------------------------------------------------------------------
SNAIL:     Martyn Shortley, 19 Hampton Park, Redland,  |
           BRISTOL,  BS6 6LG, England, UK              |
JANET:     martyn@uk.ac.bris.cs.mi                     |
ARPANET:   martyn%mi.cs.bris.ac.uk@nsfnet-relay.ac.uk  |
BITNET:    martyn%uk.ac.bris.cs.mi@ukacrl.bitnet       |
UUCP:      ... !mcvax!ukc!csisles!shortley             |
----------------------------------------------------------------------------