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

CF: Version 0.94.0 bugs.




 Seems a few bugs made it out due to some last minutes changes in the code.

 First, in ericserver.c, there is a typo - intt instead of int.

 Second, it appears that the space is missing between the number and item named
- caused by trying to remove the superfluous 'a' for singular items.  Here is
a patch (apply with patch -w, or by hand)

*** item.c      Sat Feb  7 21:26:15 1998
--- item.c.new  Mon Feb  9 15:00:16 1998
***************
*** 213,222 ****

  #if 0
        /* if nrof==1, then get_number returns 'a'. Add an 'n' if appropriate*/
!       if(op->nrof==1&&QUERY_FLAG(op,FLAG_AN))
            strcat(buf,"n");
-       strcat(buf, " ");
  #endif
        strcat(buf,op->name);
        if (op->nrof != 1) {
            char *buf3 = strstr(buf, " of ");
--- 213,223 ----

  #if 0
        /* if nrof==1, then get_number returns 'a'. Add an 'n' if appropriate*/
!       if(op->nrof==1) {
!         &&QUERY_FLAG(op,FLAG_AN))
            strcat(buf,"n");
  #endif
+       if (op->nrof!=1) strcat(buf, " ");
        strcat(buf,op->name);
        if (op->nrof != 1) {
            char *buf3 = strstr(buf, " of ");


 Third, it appears it will not compile unless ERIC_SERVER is enabled.  Here is
a patch for that:

 ericserver.c.new ericserver.c
*** ericserver.c.new    Mon Feb  9 15:11:31 1998
--- ericserver.c        Mon Feb  9 15:13:01 1998
***************
*** 1592,1596 ****
--- 1592,1600 ----
  void draw_client_map(object *pl) {}
  void esrv_map_scroll(long client_id,int dx,int dy) {}
  void free_all_ericserver() {}
+ void HandleClient(int cnum) {}
+ void esrv_ToggleSound(object *pl, int client_num) {}
+ void esrv_update_item(int flags, object *pl, object *op) {}
+ void esrv_play_sound(object *pl, int soundnum,  int x, int y) {}
  #endif



-- 

-- Mark Wedel
mark@pyramid.com
[to unsubscribe etc., send mail to crossfire-request@ifi.uio.no]