Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!apple!bloom-beacon!think!ames!dftsrv!nssdcs!setzer From: setzer@nssdcs.gsfc.nasa.gov (William Setzer (IDM)) Newsgroups: comp.sources.games.bugs Subject: Re: Omega3 bugs Summary: The fix for 'problem 3' (restoring does a core dump). Message-ID: <373@dftsrv.gsfc.nasa.gov> Date: 15 Jul 89 17:56:56 GMT References: <3494@uokmax.UUCP> Sender: news@dftsrv.gsfc.nasa.gov Reply-To: setzer@nssdcs.UUCP (William Setzer (IDM)) Organization: NSSDC Greenbelt Md. Lines: 24 In article <3494@uokmax.UUCP> kwthomas@uokmax.UUCP (Kevin Thomas) writes: >There are a couple of bugs in the recently released omega3, version 0.75. >I found these playing the beta release (ftp'd from paul.rutgers.edu). [...] >Problem 3: >Restoring a game fails. The cause is a couple of lines of missing code. The fix is in file osave.c at line ~610 (counted by hand, so don't take as gospel). There is a sequence of lines in restore_player that looks like: ------ - #ifndef MSDOS - fread((char *)&(Objects[i].known),sizeof(int),1,fd); - #else fread((char *)&(Objects[i].known),sizeof(Objects[i].known),1,fd); - #endif ------ (I added the minuses at the beginning of lines 1, 2, 3 and 5.) Just remove the lines starting with the minus and everything should work ok. (The problem is that Objects[i].known is type 'uchar', not int. I don't know how it worked for Laurence.) -- William Setzer setzer@epsl.umd.edu ; My 'real' mail address.