Difference for socket/info.c from version 1.7 to 1.8


version 1.7 version 1.8
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_sock_info_c =   * static char *rcsid_sock_info_c =
  *   "$Id: info.c,v 1.7 2001/11/19 23:30:28 michtoen Exp $";   *   "$Id: info.c,v 1.8 2002/07/15 04:57:13 mwedel Exp $";
  */   */
   
 /*  /*
     CrossFire, A Multiplayer game for X-windows      CrossFire, A Multiplayer game for X-windows
   
     Copyright (C) 2000 Mark Wedel      Copyright (C) 2002 Mark Wedel & Crossfire Development Team
     Copyright (C) 1992 Frank Tore Johansen      Copyright (C) 1992 Frank Tore Johansen
   
     This program is free software; you can redistribute it and/or modify      This program is free software; you can redistribute it and/or modify
Line 23
 
Line 23
     along with this program; if not, write to the Free Software      along with this program; if not, write to the Free Software
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.      Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
   
     The author can be reached via e-mail to mwedel@scruz.net      The authors can be reached via e-mail at crossfire-devel@real-time.com
 */  */
   
 /* This file implements some of the simpler output functions to the  /* This file implements some of the simpler output functions to the
Line 321
 
Line 321
       sprintf(obuf,"Range: spell (%s)",        sprintf(obuf,"Range: spell (%s)",
               spells[pl->contr->chosen_spell].name);                spells[pl->contr->chosen_spell].name);
     break;      break;
    case range_wand:  
     sprintf(obuf,"Range: wand (%s)",     case range_misc:
           pl->contr->known_spell ?      sprintf(obuf,"Range: %s",
           spells[pl->contr->chosen_item_spell].name : "unknown");       pl->contr->ranges[range_misc]?query_base_name(pl->contr->ranges[range_misc],0): "none");
     break;  
    case range_rod:  
     sprintf(obuf,"Range: rod (%s)",  
           pl->contr->known_spell ?  
           spells[pl->contr->chosen_item_spell].name : "unknown");  
     break;  
    case range_horn:  
     sprintf(obuf,"Range: horn (%s)",  
           pl->contr->known_spell ?  
           spells[pl->contr->chosen_item_spell].name : "unknown");  
     break;      break;
   
     /* range_scroll is only used for controlling golems.  If the      /* range_scroll is only used for controlling golems.  If the
      * the player does not have a golem, reset some things.       * the player does not have a golem, reset some things.
      */       */
    case range_scroll:     case range_golem:
     if (pl->contr->golem!=NULL)      if (pl->contr->golem!=NULL)
       sprintf(obuf,"Range: golem (%s)",pl->contr->golem->name);        sprintf(obuf,"Range: golem (%s)",pl->contr->golem->name);
     else {      else {
Line 354
 
Line 345
    default:     default:
     strcpy(obuf,"Range: illegal");      strcpy(obuf,"Range: illegal");
   }    }
   pl->contr->last_known_spell = pl->contr->known_spell;  
   pl->contr->last_shoot=pl->contr->shoottype;  
   pl->contr->last_spell=chosen_spell;  
 }  }
   
 void set_title(object *pl,char *buf)  void set_title(object *pl,char *buf)
 {  {
   if(pl->contr->last_value==-1) {  
     /* Eneq(@csd.uu.se): Let players define their own titles. */      /* Eneq(@csd.uu.se): Let players define their own titles. */
     if (pl->contr->own_title[0]=='\0')      if (pl->contr->own_title[0]=='\0')
       sprintf(buf,"Player: %s the %s",pl->name,pl->contr->title);        sprintf(buf,"Player: %s the %s",pl->name,pl->contr->title);
     else      else
       sprintf(buf,"Player: %s the %s",pl->name,pl->contr->own_title);        sprintf(buf,"Player: %s the %s",pl->name,pl->contr->own_title);
   }    }
 }  
   
   
   
Line 376
 
Line 362
  * the view is now marked with value 2.  Any dependencies of map_mark   * the view is now marked with value 2.  Any dependencies of map_mark
  * being nonzero have been changed to check for 1.  Also, since   * being nonzero have been changed to check for 1.  Also, since
  * map_mark is a char value, putting 2 in should cause no problems.   * map_mark is a char value, putting 2 in should cause no problems.
  * Mark Wedel (master@rahul.net)   * Mark Wedel
  * This function examines the map the player is on, and determines what   * This function examines the map the player is on, and determines what
  * is visible.  2 is set for walls or objects that blocks view.  1   * is visible.  2 is set for walls or objects that blocks view.  1
  * is for open spaces.  map_mark should already have been initialized   * is for open spaces.  map_mark should already have been initialized
Line 464
 
Line 450
  * This is because the second stipple pattern used has a different   * This is because the second stipple pattern used has a different
  * repeat rate   * repeat rate
  *   *
  * Mark Wedel (master@rahul.net)   * Mark Wedel
  */   */
   
 void draw_map(object *pl)   void draw_map(object *pl)


Legend:
line(s) removed in v.1.7 
line(s) changed
 line(s) added in v.1.8

File made using version 1.98 of cvs2html by leaf at 2011-07-21 19:34