omega fix

Tim Henrion tim at banyan.UUCP
Fri Jan 29 23:30:32 AEST 1988


I haven't seen anybody else post any 'omega' bug fixes so
I'll post mine. There is a blatant bug in the routine time_clock()
in otime.c which removes monsters which have died for some reason
or another.

Here are my diffs:

*** otime.c.orig	Wed Jan 27 11:14:35 1988
--- otime.c	Wed Jan 27 11:27:34 1988
***************
*** 58,67 ****
        ml = ml->next;
        free((char *) tempml->m);
        free((char *) tempml);
      }
!     else if (Tick == ml->m->click) {
!       ml->m->click = (ml->m->click + ml->m->speed) % 50;
!       m_pulse(ml->m);
      }
      prevml = ml;
      ml = ml->next;
--- 58,68 ----
        ml = ml->next;
        free((char *) tempml->m);
        free((char *) tempml);
+       continue;
      }
!     if (Tick == ml->m->click) {
! 	ml->m->click = (ml->m->click + ml->m->speed) % 50;
! 	m_pulse(ml->m);
      }
      prevml = ml;
      ml = ml->next;

-------------------------------------------------------------------------

The game has a few other bugs which I haven't looked for yet but in
general it's pretty fun except for the fact that it uses curses which
is rather inefficient. I have finally gotten the Head of the Goblin
King for the Duke and am going for the Demonhide Armor...

	Other minor bugs which I haven't looked for yet:
	1) Saving the game when you're a "three time loser"
           does not save that fact. When you restart and get
	   put into jail, you are given probation.
	2) When you restore a saved game, it does not draw you
	   on the screen until you do a ^R.
	3) When you find a secret passage using the search command,
	   it does not redraw the newfound square. Again you must use
	   the ^R command.

----------------------------------------------------------------------------

Tim Henrion
Communications Software Engineer	UUCP:  ...!necntc!banyan!tim
Banyan Systems, Inc.			VOICE: (617) 898-1116
115 Flanders Road
Westboro, MA 01581

	   "UNIX?  What do you expect from the phone company..." :-)



More information about the Comp.sources.bugs mailing list