Path: utzoo!attcan!uunet!peregrine!elroy!ames!pacbell!att!occrsh!rjd From: rjd@occrsh.ATT.COM (Randy_Davis) Newsgroups: comp.sources.games.bugs Subject: Re: tetrix INIT_PAUSE Summary: ...or add the INIT_PAUSE to line 126 of tet.c Message-ID: <630@occrsh.ATT.COM> Date: 12 Mar 89 17:19:27 GMT References: <204@sabin.UUCP> <440@corpane.UUCP> Reply-To: rjd@occrsh.UUCP (Randy_Davis) Followup-To: com.sources.games.bugs Organization: AT&T Network & Data Systems, OKC Lines: 24 In article <440@corpane.UUCP> sparks@corpane.UUCP (John Sparks) writes: >In article <204@sabin.UUCP>, bjm@sabin.UUCP (Brendan J. McMahon) writes: >> The first tetrix game (1 shar) compiled fine for me. But the README said there >> was a variable in tet.c INIT_PAUSE that will adjust the speed of the fall. >> How do I adjust the speed without this nonexistant constant? >I found this same error. However after experimenting I found that you >need to change the variable CurrentPause in tet.c line 126. Or you could do as I did: change the line 126 in tet.c to read: CurrentPause=INIT_PAUSE; ..then add an INIT_PAUSE #define at the beginning of tet.c, so at least the file now agrees with the README file. You might also want to play around with the decrement if you have to put a huge number in to get it to run slow enough, as, from inspection of the code and the CurrentPause-- line, it only decreases the pause by one for each line that is filled and removed. If you start out at >1000, it is going to speed up very slowly, which may or may not as you like it. It would be fairly easy to add the decrement as a #define, like #define DEC 10 then change the CurrentPause-- line to CurrentPause -= DEC;. Randy Davis UUCP: ...(att!)ocrjd!randy ...(att!)occrsh!rjd