[net.sources.games] searchSVR2 signed char problem

lmm@labsms.UUCP (05/06/86)

Oh great and mighty 'search' Gurus out there - - 

I've got a problem - - I have received all off the source to
search for System V release 2.  It compiles ok, however When 
I run it, I can only make my velocity go in a positive X direction
(and only a negative Y velocity) Come to find out that this has to do
with the fact that our machine (an AT&T 3B20S) doesn't understand
signed chars - - - All chars are unsigned (therefore no negative
values). It looks like search is *VERY* dependant on signed chars.

	Ive thought about doing a "typedef short int schar", and
then replacing the applicable chars to schars, however short
ints on our machine are 16 bits long (verses 8bits for chars).
Wouldn't this  make the universe lots bigger than the 256 by 256
(-128 to 127) coordinate system with wrap around.

	Has anybody else ran into this? - - Is there an easy fix?

Larry McWilliams
ihnp4!labsms!lmm
or
okstate!uokvax!occrsh!labsms!lmm