(1 / 1)
Date: March 28, 1990 15:11
From: CHARM::HARPER
To: @SYS$MAIL:EE
If you use hall effect controls or pots in your video game, read on... How many of you programmers use the dreaded POTS.C routines? Well, I have a little goodie for you. Late one night, Andy and I were wrestling with some controller problems. It seemed we could not get the "automatic" centering to work. In fact, the actual centering code was never executed. We finally found this bug that I am sure is in some production games, don't let it be in yours! FIND THIS STATMENT: pots_midtmr[ bank ] = -1; /* count down in seconds */ CHANGE IT TO THIS: pots_midtmr[ bank ] -= 1; /* count down in seconds */ If you have this bug, it continually reset a countdown timer to minus 1 and NEVER takes the branch to the mid adjustment routine. Nifty, huh? -Dennis
Mar 28, 1990