Path: utzoo!attcan!uunet!lll-winken!lll-tis!helios.ee.lbl.gov!pasteur!ames!pacbell!att!ihnp4!chinet!jjd From: jjd@chinet.UUCP (Joe Durnavich) Newsgroups: comp.sources.games.bugs Subject: Spacewar bug Message-ID: <5786@chinet.UUCP> Date: 9 Jun 88 18:11:57 GMT Reply-To: jjd@chinet.UUCP (Joe Durnavich) Organization: Chinet - Public Access Unix Lines: 23 I got spacewar to compile and run on an NCR Tower 32/600 ok except for one bug. The spacecraft functioned correctly, but the universe seem clustered around coordinates 0, 0, 0. I traced the problem to the vdiff function in mutils.c. To fix it, I changed this: for (i=0;i++<3;) *cvec++ = *avec++ - *bvec++; To this: for (i=0;i++<3;) { *cvec = *avec - *bvec; avec++; bvec++; cvec++; } ---------------- Joe Durnavich ihnp4!chinet!jjd