DG script variables now save to the player file instead of their own file. The load function has been kept for backwards compatibility.

This commit is contained in:
Rumble 2006-12-28 02:08:22 +00:00
parent c6ada5a4d5
commit 930fe8c827
3 changed files with 78 additions and 3 deletions

View file

@ -1354,7 +1354,11 @@ int enter_player_game (struct descriptor_data *d)
/* find_char helper */
add_to_lookup_table(GET_ID(d->character), (void *)d->character);
read_saved_vars(d->character);
// after moving saving of variables to the player file, this should only be called
// in case nothing was found in the pfile. If something was found, SCRIPT(ch) will
// be set
if (!SCRIPT(d->character))
read_saved_vars(d->character);
d->character->next = character_list;
character_list = d->character;