--- deliantra/server/socket/info.C 2006/08/29 08:01:38 1.2 +++ deliantra/server/socket/info.C 2006/08/31 17:54:15 1.3 @@ -1,6 +1,6 @@ /* * static char *rcsid_sock_info_c = - * "$Id: info.C,v 1.2 2006/08/29 08:01:38 root Exp $"; + * "$Id: info.C,v 1.3 2006/08/31 17:54:15 root Exp $"; */ /* @@ -379,7 +379,7 @@ if(op==NULL) break; sprintf (obuf, "Range: %s (%s)", query_base_name(op, 0), - op->race ? op->race : "nothing"); + op->race ? (const char *)op->race : "nothing"); } break; @@ -388,10 +388,10 @@ if (pl->casting_time > -1) { if (pl->casting_time == 0) sprintf(obuf,"Range: Holding spell (%s)", - pl->spell->name); + (const char *)pl->spell->name); else sprintf(obuf,"Range: Casting spell (%s)", - pl->spell->name); + (const char *)pl->spell->name); } else sprintf(obuf,"Range: spell (%s)", pl->contr->ranges[range_magic]->name); @@ -420,7 +420,7 @@ case range_skill: sprintf(obuf,"Skill: %s", pl->chosen_skill!=NULL ? - pl->chosen_skill->name : "none"); + (const char *)pl->chosen_skill->name : "none"); break; case range_builder: @@ -439,9 +439,9 @@ { /* Eneq(@csd.uu.se): Let players define their own titles. */ if (pl->contr->own_title[0]=='\0') - sprintf(buf,"Player: %s the %s",pl->name,pl->contr->title); + sprintf(buf,"Player: %s the %s",(const char *)pl->name,(const char *)pl->contr->title); else - sprintf(buf,"Player: %s %s",pl->name,pl->contr->own_title); + sprintf(buf,"Player: %s %s",(const char *)pl->name,(const char *)pl->contr->own_title); }