Crossfire Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CF: Cross Edit patch...



Ok I got sick of crossedit  not deleting the object selected in the
look window, (list of objects at the selected position) instead deleting
the object ABOVE the one I pick.

In fact I got especially sick of being unable to delete the bottommost
object in that window (always deleting the second last object).

Well I found the cause and here is a patch. I think it will also fix
some of the wierd behaviour involved with ``wipe below'' edit function
too.

This can be applyed to ANY version of crossfire currently out :-)

=======8<--------CUT HERE----------axes/crowbars permitted---------------
*** crossedit/Edit.c.orig	Tue Dec 22 17:20:53 1998
--- crossedit/Edit.c	Tue Dec 22 17:28:08 1998
***************
*** 1655,1663 ****
  	else
  	    return False;
      }
!     if (z > 0)
!         obj = obj->above;
! 
      if (self->app->attr && self->app->attr->op == obj)
  	AttrChange(self->app->attr, NULL, 0, 0);
      if (AppItemGetEdit(self->app) == self)
--- 1655,1665 ----
  	else
  	    return False;
      }
!     /* This is just plain wrong 
!     **                    -- deletes object above the selected object!
!     ** if (z > 0)
!     **    obj = obj->above;
!     */
      if (self->app->attr && self->app->attr->op == obj)
  	AttrChange(self->app->attr, NULL, 0, 0);
      if (AppItemGetEdit(self->app) == self)
=======8<--------CUT HERE----------axes/crowbars permitted---------------

  Anthony Thyssen ( System Programmer )    http://www.sct.gu.edu.au/~anthony/
- --------------------------------------------------------------------------- -
	  Scotty:   Captain, we din' can reference it!
	  Kirk:     Analysis, Mr. Spock?
	  Spock:    Captain, it doesn't appear in the symbol table.
	  Kirk:     Then it's of external origin?
	  Spock:    Affirmative.
	  Kirk:     Mr. Sulu, go to pass two.
	  Sulu:     Aye aye, sir, going to pass two.           --- fortune(6)
- --------------------------------------------------------------------------- -
     PGP Public Key available -- finger -l anthony@lyrch.cit.gu.edu.au
-
[you can put yourself on the announcement list only or unsubscribe altogether
by sending an email stating your wishes to crossfire-request@ifi.uio.no]