Mail Archives: djgpp/1998/12/18/03:55:28
Scott Lanning wrote in message <75avcd$9jd$1 AT news1 DOT bu DOT edu>...
>Graeme Fenwick (gfenwick AT BYESPAMprimex DOT co DOT uk) wrote:
>:Allegro's keypressed() [...] seems to be returning false, regardless
>: int detect_key(void) {
>: if (!keypressed()); <--.
>: return NO_KEY; |
Umm.... *Bangs head against wall repeatedley*.
I'm not normally that stupid. Really. ;-)
I guess I was so absorbed with trying to work out what was wrong with the
function call/ expression in the brackets that I didn't notice the typo.
(Since it wasn't in the original handwritten listing, I can get away with
calling it a typo. Well, that's my excuse, and I'm sticking to it :-) ).
Seriously... thanks to everyone who spotted that. Sometimes it needs a fresh
eye to spot an obvious error that's been overlooked, like that one.
While I'm here, see what you think of this "Celestial Fireworks/ Globular
Cluster" program :-
ftp://ftp.simtel.net/pub/simtelnet/msdos/astronmy/glclu12.zip
It's not all mine (being based on a BBC BASIC listing!), and don't expect
technical brilliance either- since it was written as a programming exercise,
it doesn't exactly show off Allegro's capabilities. In spite of all that, it
has a certain appeal (I hope!)- and the source is there to hack around with
if you want...
============================================
Graeme Fenwick | gfenwick AT BYESPAMprimex DOT co DOT uk
"Please remove BYESPAM filter when replying by mail"
-- WILLIAM SHAKESPEARE, Hamlet.
- Raw text -