Crossfire Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CF: character title not being set
- To: crossfire (at) ifi.uio.no
- Subject: CF: character title not being set
- From: "Brian Thomas" <>
- Date: Fri, 16 Aug 96 08:19:17 EDT
- Sender: owner-crossfire
Hi all,
I found that my character's title was not being read
properly when I logged back in. I use SunOS 4.1.3, don't
know if this is a problem on other OS. Here's a short
patch for login.c that works for me (no idea if this is
bad for other OS):
*** login.c Wed Jul 24 03:45:50 1996
--- ../../../crossfire/server/login.c Fri Aug 16 08:12:58 1996
***************
*** 533,544 ****
while (fgets(bufall,MAX_BUF,fp)!=NULL) {
sscanf(bufall,"%s %d\n",buf,&value);
if (!strcmp(buf,"endplst"))
break;
#ifdef SET_TITLE
! else if (!strncmp(bufall,"title",6))
! sscanf(bufall,"title %s[^\n]",pl->own_title);
#endif /* SET_TITLE */
#ifdef SAVE_WINDOW_POSITIONS
else if (!strcmp(buf,"win_pos") && pl->split_window) {
pl->valid_save_positions=
(sscanf(bufall,
--- 533,545 ----
while (fgets(bufall,MAX_BUF,fp)!=NULL) {
sscanf(bufall,"%s %d\n",buf,&value);
if (!strcmp(buf,"endplst"))
break;
#ifdef SET_TITLE
! else if (!strcmp(buf,"title"))
! sscanf(bufall,"title %s",pl->own_title);
! /* sscanf(bufall,"title %s[^\n]",pl->own_title); */
#endif /* SET_TITLE */
#ifdef SAVE_WINDOW_POSITIONS
else if (!strcmp(buf,"win_pos") && pl->split_window) {
pl->valid_save_positions=
(sscanf(bufall,