atari email archive

a collection of messages sent at Atari from 1983 to 1992.

Get Centered!

(1 / 1)


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
Message 1 of 1

Mar 28, 1990