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

CF: Patches in Japanese CF-ML(Inscription bug)



There are some patches in Japanese crossfire mailing list.
There are called "Yogo Patches". (Mr. Yogo made these patches.)

Now I distribute some of Yogo Patches in the name of Mr. Yogo.
Patches will remove following bugs.

o Inscription skill causes errors on some BSD OS.

o Players' negative luck parameter does not go back to 0 by itself.
  (Is this a bug or a specification? )

o No random ring with Pow stat is not generated.

o Player titles are not loaded properly from save files.
  (e.g. the title "brave warrior" will be loaded as "brave")

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

The following is a patch for Inscription bug.


*** server.org/skills.c	Sun Jun 22 14:52:39 1997
--- server/skills.c	Sun Aug 17 23:20:33 1997
***************
*** 942,948 ****
      /* if there is a message then it goes in a book and no message means
       * write active spell into the scroll 
       */
!     msgtype = strlen(string) ? BOOK : SCROLL;
  
      /* find an item of correct type to write on */
      if ( !(item = find_marked_object(pl))){
--- 942,948 ----
      /* if there is a message then it goes in a book and no message means
       * write active spell into the scroll 
       */
!     msgtype = strlen(string) && string[0] ? BOOK : SCROLL;
  
      /* find an item of correct type to write on */
      if ( !(item = find_marked_object(pl))){
[to unsubscribe etc., send mail to crossfire-request@ifi.uio.no]