Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!usc!cs.utexas.edu!tut.cis.ohio-state.edu!pt.cs.cmu.edu!f.gp.cs.cmu.edu!sippy From: sippy@f.gp.cs.cmu.edu (Jay Sipelstein) Newsgroups: comp.sources.games.bugs Subject: Re: Wierd bug in Ularn Message-ID: <5513@pt.cs.cmu.edu> Date: 13 Jul 89 21:09:04 GMT References: <9512@marque.mu.edu> Organization: Carnegie-Mellon University, CS/RI Lines: 28 In article <9512@marque.mu.edu> operator@compsys.mu.edu (Rob McKnight) writes: > >There seems to be a bug in Ularn that gives players super weapons and armor. >With two characters now I've found what seemed to be normal magic armor >(ring mail +2 or something like that), but when I put it on and do an inventory, >suddenly I have ring mail +250! Not Bad! This has also happened to a sword >I found. Any ideas? > > >Rob McKnight >operator@marque.mu.edu There is a similar bug that is tickled when your armor is rusted. This only happens on machines with unsigned ints (such as the IBM RT). There is an implicit assuption in many places in ularn that negative numbers can be stored in chars, without explicitly declaring the variable to be signed char. This can be fixed by changing by changing the declaration. I've only bothered to change this for rust monster bug mentioned above (change rustarm to be an array of signed chars in monster.c). I know that a similar change needs to be done in the code to display inventory of dead characters (the -i option), and I'm sure it occurs in other places as well. I'm not sure if this is your problem, however the above fixes should be made. Jay Sipelstein sippy@cs.cmu.edu