OLC+ Zedit bugfix patch (doors and syslogs)

From: Del (caminturn@EARTHLINK.NET)
Date: 08/24/98


Also available on my site home.earthlink.net/~caminturn/zedit.bug.diff (when
I get it put up there)


--- zedit.c.orig        Mon Aug 24 12:06:58 1998
+++ zedit.c     Mon Aug 24 12:23:32 1998
@@ -52,6 +52,7 @@ void zedit_disp_comtype(struct descripto
 void zedit_disp_arg1(struct descriptor_data *d);
 void zedit_disp_arg2(struct descriptor_data *d);
 void zedit_disp_arg3(struct descriptor_data *d);
+void zedit_disp_arg4(struct descriptor_data *d);
 void zedit_save_internally(struct descriptor_data *d);
 void zedit_save_to_disk(int zone_num);
 void zedit_create_index(int znum, char *type);
@@ -1088,7 +1089,8 @@ void zedit_disp_arg3(struct descriptor_d
      default:
        /*. We should never get here .*/
        cleanup_olc(d, CLEANUP_ALL);
-       mudlog("SYSERR: OLC: zedit_disp_arg3(): Help!", BRF, LVL_GOD, TRUE);
+       mudlog("SYSERR: OLC: zedit_disp_arg4(): Help!", BRF, LVL_GOD, TRUE);
+       send_to_char("Problem, report to your local GOD zedit_disp_arg4",
d->character);
        return;
    }
    OLC_MODE(d) = ZEDIT_ARG4;
@@ -1428,7 +1429,7 @@ d->character);
        send_to_char("Try again : ", d->character);
       else {
        OLC_CMD(d).arg2 = pos;
-       zedit_disp_arg4(d);
+       zedit_disp_arg3(d);
       }
       break;
     case 'R':
@@ -1471,7 +1472,7 @@ d->character);
        send_to_char("Try again : ", d->character);
       else {
        OLC_CMD(d).arg3 = pos;
-       zedit_disp_menu(d);
+       zedit_disp_arg4(d);
       }
       break;
     case 'P':
@@ -1547,7 +1548,7 @@ d->character);
       default:
         /*. We should never get here .*/
         cleanup_olc(d, CLEANUP_ALL);
-        mudlog("SYSERR: OLC: zedit_parse(): case ARG3: Ack!", BRF, LVL_GOD,
TRUE);
+        mudlog("SYSERR: OLC: zedit_parse(): case ARG4: Ack!", BRF, LVL_GOD,
TRUE);
         break;
     }
     break;


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



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