mirror of
https://github.com/tbamud/tbamud.git
synced 2025-12-22 02:00:13 +01:00
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:
parent
c6ada5a4d5
commit
930fe8c827
3 changed files with 78 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue