[NEWBIE] RomanceModule 0.90.2

From: Phillip Cowan (pcowan@ASAPINTRA.NET)
Date: 03/09/99


I'm not much of a C programmer (duh!), but I figured I would start small and
work into learning to modify my MUD. I am applying this patch to circle3.0bpl14
with OLC+21. I am having issues with this code not acting properly when I call
the commands. I can date someone, and I can reject someone, but when I try to
propose, it says I need to be dating someone? I analyze the code, and it seems
sound... but I feel it probably revolves around this error when compiling.

I've been working through the code for a few nights here, and I would like
to hear any ideas you may have. Please, email me directly as I don't feel
the list needs to be cluttered with responses (unless it's a common problem
that others can benefit from, of course).

Thanks for your time, and bandwidth...
  -vittlemaster ( vittlemaster@yondervittles.com )


gcc -c -g -O2 -Wall -Wno-char-subscripts  act.other.c
act.other.c: In function `do_reject':
act.other.c:1127: warning: unused variable `tempname'
act.other.c: In function `marry_them':
act.other.c:1451: warning: unused variable `vict_st'
act.other.c:1450: warning: unused variable `ch_st'


1123: /* Romance Module -- Reject A Proposition */
1124: ACMD(do_reject)
1125: {
1126:  struct char_data *victim;
1127:  char tempname[MAX_NAME_LENGTH+1];
1128:   if(ROMANCE(ch) < ASKED_OUT) { /* You're not being asked out.. */
1129:   send_to_char("You're not being romantically propositioned..\r\n", ch);
1130:   return;
1131:  }
1132:  else { /* Okay, you've been asked out or proposed to.. */


1447: /* Function for the actual marriage */
1448: void marry_them (struct char_data *ch, struct char_data *victim, struct char_data *imm)
1449: {
1450:  struct char_file_u ch_st;
1451:  struct char_file_u vict_st;
1452:  /* Do standard checks.. */
1453:   if (crashcheck_alpha(victim, imm) == 1)
1454:   {
1455:    return;
1456:   }


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST