Difference for server/monster.c from version 1.82 to 1.83


version 1.82 version 1.83
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_monster_c =   * static char *rcsid_monster_c =
  *    "$Id: monster.c,v 1.82 2005/07/28 07:23:19 qal21 Exp $";   *    "$Id: monster.c,v 1.83 2005/08/12 08:18:59 ryo_saeba Exp $";
  */   */
   
 /*  /*
Line 1505
 
Line 1505
  * Returns NULL if no match is found.   * Returns NULL if no match is found.
  * The player is passed too, so that quest-related messages can be checked too.   * The player is passed too, so that quest-related messages can be checked too.
  */   */
 static char *find_matching_message(object* pl, char *msg, char *match)  static char *find_matching_message(object* pl, const char *msg, const char *match)
 {  {
     char *cp=msg, *cp1, *cp2, regex[MAX_BUF], *cp3, gotmatch=0;      const char *cp=msg, *cp1, *cp2;
       char *cp3, regex[MAX_BUF], gotmatch=0;
   
     while (1) {      while (1) {
  if (strncmp(cp, "@match ", 7)) {   if (strncmp(cp, "@match ", 7)) {
Line 1621
 
Line 1622
     }      }
 }  }
   
 int talk_to_npc(object *op, object *npc, char *txt) {  int talk_to_npc(object *op, object *npc, const char *txt) {
     object *cobj;      object *cobj;
     CFParm CFP;      CFParm CFP;
     int k, l, m;      int k, l, m;
Line 1637
 
Line 1638
     n = 0;      n = 0;
     CFP.Value[0] = &k;      CFP.Value[0] = &k;
     CFP.Value[1] = op;      CFP.Value[1] = op;
     CFP.Value[4] = txt;      CFP.Value[4] = (void*)txt;
     CFP.Value[5] = &n;      CFP.Value[5] = &n;
     CFP.Value[6] = &m;      CFP.Value[6] = &m;
     CFP.Value[7] = &m;      CFP.Value[7] = &m;
Line 1687
 
Line 1688
     return 0;      return 0;
 }  }
   
 int talk_to_wall(object* pl, object *npc, char *txt) {  int talk_to_wall(object* pl, object *npc, const char *txt) {
     char *cp;      char *cp;
   
     if(npc->msg == NULL || *npc->msg != '@')      if(npc->msg == NULL || *npc->msg != '@')


Legend:
line(s) removed in v.1.82 
line(s) changed
 line(s) added in v.1.83

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