mirror of
https://github.com/tbamud/tbamud.git
synced 2026-02-22 11:31:44 +01:00
tbaMUD 3.54
[Oct 10 2007] - Rumble Added OLC menu options for Copying. The Xcopy option is still available for GODs and above. Player table is now created if it does not exist. (thanks Rhade) [Oct 08 2007] - Rumble Removed top_shop_offset variable, hopefully fixing the infamous sedit bug. Fixed memory leaks from not freeing new zone builders and new zone commands. (thanks Neme)
This commit is contained in:
16
src/redit.c
16
src/redit.c
@@ -426,7 +426,8 @@ void redit_disp_menu(struct descriptor_data *d)
|
||||
"%sA%s) Exit down : %s%d\r\n"
|
||||
"%sB%s) Extra descriptions menu\r\n"
|
||||
"%sS%s) Script : %s%s\r\n"
|
||||
"%sX%s) Delete Room\r\n"
|
||||
"%sW%s) Copy Room\r\n"
|
||||
"%sX%s) Delete Room\r\n"
|
||||
"%sQ%s) Quit\r\n"
|
||||
"Enter choice : ",
|
||||
|
||||
@@ -457,6 +458,7 @@ void redit_disp_menu(struct descriptor_data *d)
|
||||
grn, nrm,
|
||||
grn, nrm, cyn, OLC_SCRIPT(d) ? "Set." : "Not Set.",
|
||||
grn, nrm,
|
||||
grn, nrm,
|
||||
grn, nrm
|
||||
);
|
||||
|
||||
@@ -564,6 +566,11 @@ void redit_parse(struct descriptor_data *d, char *arg)
|
||||
OLC_DESC(d) = OLC_ROOM(d)->ex_description;
|
||||
redit_disp_extradesc_menu(d);
|
||||
break;
|
||||
case 'w':
|
||||
case 'W':
|
||||
write_to_output(d, "Copy what room? ");
|
||||
OLC_MODE(d) = REDIT_COPY;
|
||||
break;
|
||||
case 'x':
|
||||
case 'X':
|
||||
/* Delete the room, prompt first. */
|
||||
@@ -783,6 +790,13 @@ void redit_parse(struct descriptor_data *d, char *arg)
|
||||
}
|
||||
break;
|
||||
|
||||
case REDIT_COPY:
|
||||
if ((number = real_room(atoi(arg))) != NOWHERE) {
|
||||
redit_setup_existing(d, number);
|
||||
} else
|
||||
write_to_output(d, "That room does not exist.\r\n");
|
||||
break;
|
||||
|
||||
case REDIT_DELETE:
|
||||
if (*arg == 'y' || *arg == 'Y') {
|
||||
if (delete_room(real_room(OLC_ROOM(d)->number)))
|
||||
|
||||
Reference in New Issue
Block a user