Path: utzoo!mnetor!uunet!mcvax!ukc!its63b!ajcd From: ajcd@its63b.ed.ac.uk (Angus Duggan, Department of Computer Science, University of Edinburgh,) Newsgroups: comp.sources.games.bugs Subject: more omega bugs Message-ID: <968@its63b.ed.ac.uk> Date: 9 Feb 88 14:22:22 GMT Reply-To: ajcd@its63b.ed.ac.uk (Angus Duggan) Organization: I.T. School, Univ. of Edinburgh, U.K. Lines: 45 Keywords: omega bugs osite.c safe condo Summary: coredump when putting money in condo safe [warning - line eater at work] Here's another omega bug: If you buy a penthouse from the Rampart Arms, and then try to put money in it's safe, omega coredumps. And here's a fix: add a new declaration to function l_condo in file "osite.c" - void l_condo() { pol ol,prev=NULL; int i,done=FALSE,over=FALSE,weeksleep=FALSE; char response; pob money; and then add an if statement after the call to getitem later on in l_condo - menuprint("d: Retire permanently.\n"); menuprint("ESCAPE: Leave this place.\n"); response = mgetc(); if (response == 'a') { i = getitem(NULL); if (i == CASHVALUE) { money = detach_money(); if (money != NULL) { ol = ((pol) malloc(sizeof(oltype))); ol->thing = money; ol->next = Condoitems; Condoitems = ol; } } else if (i != ABORT) { if (Player.possessions[i-'a']->blessing < 0) mprint("The item just doesn't want to be stored away..."); The function detach_money should be declared as - extern pob detach_money() -- Angus Duggan, Department of Computer Science, University of Edinburgh, James Clerk Maxwell Building, The King's Buildings, Mayfield Road, Edinburgh, EH9 3JZ, Scotland, U.K. JANET: ajcd@uk.ac.ed.ecsvax ARPA: ajcd%ed.ecsvax@nss.cs.ucl.ac.uk USENET: ajcd@ecsvax.ed.ac.uk UUCP: ...!mcvax!ukc!ed.ecsvax!ajcd BITNET: ukacrl.earn!ed.ecsvax!ajcd or ajcd%ed.ecsvax@uk.ac