Difference for server/apply.c from version 1.20 to 1.21


version 1.20 version 1.21
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_apply_c =   * static char *rcsid_apply_c =
  *   "$Id: apply.c,v 1.20 2000/10/16 19:19:31 peterm Exp $";   *   "$Id: apply.c,v 1.21 2000/10/30 22:09:59 jec Exp $";
  */   */
 /*  /*
     CrossFire, A Multiplayer game for X-windows      CrossFire, A Multiplayer game for X-windows
Line 917
 
Line 917
   
   
 /*  /*
    * Returns pointer a static string containing gravestone text
    */
   char *gravestone_text (object *op)
   {
       static char buf2[MAX_BUF];
       char buf[MAX_BUF];
       time_t now = time (NULL);
   
       strcpy (buf2, "                 R.I.P.\n\n");
       if (op->type == PLAYER)
           sprintf (buf, "%s the %s\n", op->name, op->contr->title);
       else
           sprintf (buf, "%s\n", op->name);
       strncat (buf2, "                    ",  20 - strlen (buf) / 2);
       strcat (buf2, buf);
       if (op->type == PLAYER)
           sprintf (buf, "who was in level %d when killed\n", op->level);
       else
           sprintf (buf, "who was in level %d when died.\n\n", op->level);
       strncat (buf2, "                    ",  20 - strlen (buf) / 2);
       strcat (buf2, buf);
       if (op->type == PLAYER) {
           sprintf (buf, "by %s.\n\n", op->contr->killer);
           strncat (buf2, "                    ",  21 - strlen (buf) / 2);
           strcat (buf2, buf);
       }
       strftime (buf, MAX_BUF, "%b %d %Y\n", localtime (&now));
       strncat (buf2, "                    ",  20 - strlen (buf) / 2);
       strcat (buf2, buf);
       return buf2;
   }
   
   
   /*
  * Returns true if sacrifice was accepted.   * Returns true if sacrifice was accepted.
  */   */
 static int apply_altar (object *altar, object *sacrifice, object *originator)  static int apply_altar (object *altar, object *sacrifice, object *originator)


Legend:
line(s) removed in v.1.20 
line(s) changed
 line(s) added in v.1.21

File made using version 1.98 of cvs2html by leaf at 2011-07-21 17:24