Bug in ogre(6)

Tim Shimeall tim at uci-icsd
Fri Jan 11 10:21:49 AEST 1985


In the distributed version of ogre(6) answering the question
about how many movement points the CP is given with anything
of ascii value less than '0' will INCREASE the number of armor
units you have.
The following is a "diff" output showing the line that needs to be
fixed, and the fix for it in the file "init.c".
					Tim

227c227,230
< 		j -= '0' ;
---
> 		if (j >= '0' && j <= '9') 
>                     {j -= '0' ;}
>                 else 
>                     j = 0;



More information about the Comp.sources.unix mailing list