On Thu, 5 Feb 1998, Joe DiLascio wrote: >Is it just me or does stock 3.0bpl12 not allow a char to be saved after a >'set file <xxx>'? When the char is loaded, it has no descriptor.. which >means it doesn't pass that check in save_char. > >if (IS_NPC(ch) || !ch->desc || GET_PFILEPOS(ch) < 0) > return; act.wizard.c:do_set(): /* save the character if a change was made */ if (retval) { if (!is_file && !IS_NPC(vict)) save_char(vict, NOWHERE); if (is_file) { char_to_store(vict, &tmp_store); fseek(player_fl, (player_i) * sizeof(struct char_file_u), SEEK_SET); fwrite(&tmp_store, sizeof(struct char_file_u), 1, player_fl); send_to_char("Saved in file.\r\n", ch); } } If using 'set file', it doesn't call 'save_char'. -- George Greer - Me@Null.net | Genius may have its limitations, but stupidity http://www.van.ml.org/~greerga | is not thus handicapped. -- Elbert Hubbard +------------------------------------------------------------+ | 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