Now options are in struct player, which gets memset in player_init() (player-birth.c):
So all options are reset to 0. Then options_init_defaults() is called (also from player_init()). Note that player_init() is called after trying to load savefile (ui-game.c):
textui_do_birth() calls player_init() via do_cmd_birth_reset().
Is it working as designed? I'd prefer the game to remember my options (roguelike keyset, etc), like it did before, even if I'm creating a new char.
Code:
/* Wipe the player */ memset(p, 0, sizeof(struct player));
Code:
/* Try loading */ if (file_exists(savefile) && !savefile_load(savefile, arg_wizard)) quit("Broken savefile"); /* No living character loaded */ if (player->is_dead || new_game) { character_generated = false; textui_do_birth(); }
Is it working as designed? I'd prefer the game to remember my options (roguelike keyset, etc), like it did before, even if I'm creating a new char.
Comment