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

CF: pet movement



I have believed that current pet movement is specification:
pet can jump and go over the wall
But according to the source code, pet should not pass the wall!

This bug and the following patch is S.Yoshioka's work.

------ 8< ------- 8= --------

*** server/pets.c.bak	Thu Mar  4 23:54:24 1999
--- server/pets.c	Thu Mar  4 23:54:53 1999
***************
*** 254,260 ****
          }
        }
      }
!     dir += 4 - (RANDOM() %5) - (RANDOM()%5);
  #if 0
      if(QUERY_FLAG(ob,FLAG_IS_TURNING))
        ob->value=(dir<5);
--- 254,260 ----
          }
        }
      }
!     dir = absdir(dir + 4 - (RANDOM() %5) - (RANDOM()%5));
  #if 0
      if(QUERY_FLAG(ob,FLAG_IS_TURNING))
        ob->value=(dir<5);

------- 8< ------ 8= --------

--------
--------------------------------------------------------------------------
Seikoh Nishita		      |	Dep't. of Information & Computer Sciences
			      |	Faculty of Engineering Science
[e-mail]		      |	Osaka University
s-nisita@ics.es.osaka-u.ac.jp |	Toyonaka, Osaka 560, Japan

-
[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]